pngwn
160e389580
chore: update versions ( #6825 )
...
Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
2023-12-19 16:17:10 -08:00
Abubakar Abid
de24424d30
skip the right functional test ( #6845 )
...
* skip functional test 2
* format
2023-12-19 16:07:52 -08:00
Abubakar Abid
17a1eb63e0
skip flaky functional test ( #6844 )
2023-12-19 15:29:45 -08:00
pngwn
846d52d1c9
Fix md highlight ( #6842 )
...
* ensure gr.Markdown instances have their own instance of the markdown renderer
* fix demo
* add changeset
* skopip test
---------
Co-authored-by: gradio-pr-bot <gradio-pr-bot@users.noreply.github.com>
2023-12-19 20:42:41 +00:00
aliabid94
828fb9e6ce
Refactor queue so that there are separate queues for each concurrency id ( #6814 )
...
* change
* changes
* add changeset
* add changeset
* changes
* changes
* changes
* changes
---------
Co-authored-by: Ali Abid <ubuntu@ip-172-31-25-241.us-west-2.compute.internal>
Co-authored-by: gradio-pr-bot <gradio-pr-bot@users.noreply.github.com>
Co-authored-by: Abubakar Abid <abubakar@huggingface.co>
2023-12-19 11:42:56 -08:00
Hannah
73268ee2e3
Improve source selection UX ( #6766 )
...
* Add new source option styling for pasting from clipboard
Use SourceSelect in Image component
* prevent device selection cut off
tweak source selection ux
* Check for dupe sources in source selection
Set sources[0] to active_source in Image
* tweaks
* tweak
* add image interaction test
* more tests
* improve light/dark mode color contrast
* add changeset
* remove unused prop
* add no device found placeholder
change T<sources> -> T<source_types>
* style tweak
* allow pasting on click + add e2e test
* fix e2e tests
* formatting
* add timeout to e2e test
* tweak
* tweak test
* change `getByLabel` to `getByText`
* value tweak
* logic tweak
* test
* formatting
---------
Co-authored-by: gradio-pr-bot <gradio-pr-bot@users.noreply.github.com>
2023-12-19 19:24:08 +00:00
Lerk
16c0e4015c
Update running-gradio-on-your-web-server-with-nginx.md ( #6804 )
...
Add proxy_buffering parameter.
2023-12-19 08:44:25 -08:00
cswamy
77c900311e
Fixes issue 5781: Enables specifying a caching directory for Examples ( #6803 )
...
* issue 5781 first commit
* second commit
* unnecessary str removed
* backend formatted
* Update gradio/helpers.py
Co-authored-by: Abubakar Abid <abubakar@huggingface.co>
* Update guides/02_building-interfaces/03_more-on-examples.md
Co-authored-by: Abubakar Abid <abubakar@huggingface.co>
* tests added
* add changeset
* format
---------
Co-authored-by: Abubakar Abid <abubakar@huggingface.co>
Co-authored-by: gradio-pr-bot <gradio-pr-bot@users.noreply.github.com>
2023-12-18 17:07:38 -08:00
Hannah
50496f967f
Adjust rounding logic when precision is None
in gr.Number()
( #6829 )
...
* adjust precision handling
add test
* add changeset
* formatting
---------
Co-authored-by: gradio-pr-bot <gradio-pr-bot@users.noreply.github.com>
2023-12-18 23:42:19 +00:00
Abubakar Abid
1b9d4234d6
Prevent file traversals ( #6833 )
...
* prevent file traversal
* fix
* add changeset
* unit test
---------
Co-authored-by: gradio-pr-bot <gradio-pr-bot@users.noreply.github.com>
2023-12-18 14:30:22 -08:00
Freddy Boulton
992d540c3d
E2E test that Queue Full does not break the client. Also that backend exceptions don't break the client or queue. ( #6812 )
...
* Add test
* Dont launch new app lol
* Remove unused imports
2023-12-18 15:13:44 -05:00
pngwn
f3abde8088
Add an option to enable header links for markdown ( #6831 )
2023-12-18 20:06:20 +00:00
Hannah
1401d99ade
Fix ImageEditor
interaction story ( #6809 )
...
* fix test + align + symbol to centre of button
* add changeset
* add changeset
---------
Co-authored-by: gradio-pr-bot <gradio-pr-bot@users.noreply.github.com>
Co-authored-by: Abubakar Abid <abubakar@huggingface.co>
2023-12-18 15:07:34 +00:00
sangjune.park
51bdf4381a
fix typo ( #6818 )
...
Signed-off-by: sangjune.park <sangjune.park@navercorp.com>
2023-12-18 12:11:44 +00:00
Dr. Christoph Mittendorf
67a2b7f12c
Fixed duplicate word ("this this") ( #6823 )
...
* Fixed duplicate word ("this this")
Fixed duplicate word ("this this")
* add changeset
---------
Co-authored-by: gradio-pr-bot <gradio-pr-bot@users.noreply.github.com>
2023-12-18 12:00:44 +00:00
pngwn
9ea7b6f05c
chore: update versions ( #6797 )
...
Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
2023-12-15 15:39:46 -08:00
renovate[bot]
69680b5827
chore(deps): update actions/upload-artifact action to v4 ( #6790 )
...
* chore(deps): update actions/upload-artifact action to v4
* Use download v4
---------
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
Co-authored-by: Abubakar Abid <abubakar@huggingface.co>
Co-authored-by: Freddy Boulton <alfonsoboulton@gmail.com>
2023-12-15 17:30:09 -05:00
Freddy Boulton
245d58eff7
Improve how server/js client handle unexpected errors ( #6798 )
...
* Client fixes
* fix
* add changeset
* commented out code
* add changeset
* Log error give generic message
* Add client side catch
* remove exception 😂
* Add test
* Fix info and warning
* lint
* Use BaseException
* Use event_callbacks
* Use event_id not present
---------
Co-authored-by: gradio-pr-bot <gradio-pr-bot@users.noreply.github.com>
2023-12-15 16:01:27 -05:00
Abubakar Abid
526fb6c446
Fix gr.load()
so that it works with the SSE v1 protocol ( #6810 )
...
* fix for gr.load()
* add changeset
* fix
* add test
* add changeset
---------
Co-authored-by: gradio-pr-bot <gradio-pr-bot@users.noreply.github.com>
2023-12-15 12:35:46 -08:00
Hannah
6b130e26b9
Ensure LoginButton value
text is displayed ( #6808 )
...
* fix LoginButton value
* add changeset
* formatting
* add `signed_in_value` parameter
* tweak
---------
Co-authored-by: gradio-pr-bot <gradio-pr-bot@users.noreply.github.com>
Co-authored-by: Abubakar Abid <abubakar@huggingface.co>
2023-12-15 19:48:25 +00:00
Abubakar Abid
c352811f76
Adds docstrings for gr.WaveformOptions
, gr.Brush
, and gr.Eraser
, fixes examples for ImageEditor
, and allows individual images to be used as the initial value
for ImageEditor
( #6799 )
...
* tweaks
* add changeset
* adding image editor
* changes
* add changeset
* docs
* add changeset
* add changeset
* refactor
* format
* example
* add changeset
* image editor
* add changeset
* commit
* added test
---------
Co-authored-by: gradio-pr-bot <gradio-pr-bot@users.noreply.github.com>
2023-12-15 10:43:39 -08:00
Abubakar Abid
7ba8c5da45
Fix SSRF vulnerability on /file=
route ( #6794 )
...
* ssrf
* add changeset
* awaits
* checkout
---------
Co-authored-by: gradio-pr-bot <gradio-pr-bot@users.noreply.github.com>
2023-12-14 14:10:24 -08:00
pngwn
dc131b64f0
chore: update versions ( #6779 )
...
Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
2023-12-14 13:14:57 -08:00
Freddy Boulton
51e241addd
Fix flaky CI tests (again 😓 ) ( #6780 )
...
* network idle
* Use **/upload
* Test flakes
* Fix pythont tests
* add changeset
* Use right wait
* upload
* trigger ci
* swap order
* networkidle❓
* lint'
* df
* 2 workers
* networkidle
* Fix cli test
* pause
* 3.8 fix
* 3.8
* no promise.all
* trigger ci
* Add code
* mark xfail
* trigger ci
* timeout
* Empty
* Flake
* test
* Flakes
* change test
* awaits
* cleanup
* fixes
---------
Co-authored-by: gradio-pr-bot <gradio-pr-bot@users.noreply.github.com>
Co-authored-by: Abubakar Abid <abubakar@huggingface.co>
2023-12-14 12:40:36 -08:00
Abubakar Abid
a807ede818
Fix backend tests on Windows ( #6781 )
...
* hotfix
* testing
* test
* fix
* fix
* add changeset
* add changeset
---------
Co-authored-by: gradio-pr-bot <gradio-pr-bot@users.noreply.github.com>
2023-12-14 11:23:30 -08:00
Abubakar Abid
ab143855a9
remove renovate ( #6783 )
2023-12-14 10:27:19 -08:00
Dawood Khan
5d51fbce78
Fixes Drag and Drop for Upload ( #6525 )
...
* fix
* add changeset
* tests
* Update package.json
* Hotfix: version on changelog (#6559 )
* clog version
* add changeset
---------
Co-authored-by: gradio-pr-bot <gradio-pr-bot@users.noreply.github.com>
* Fix version in other changelog (#6561 )
* Fix version in other changelog
why do we have 2?
* remove changeset
* Ensure Chatbot messages are properly aligned when `rtl` is true (#6574 )
* fix text alignment when rtl is true
* add changeset
---------
Co-authored-by: gradio-pr-bot <gradio-pr-bot@users.noreply.github.com>
* Improve like/dislike functionality (#6572 )
* amend like/dislike logic
* add like/dislike to chatbot demo and add e2e test
* add changeset
* e2e test changes
* revert chatbot_component changes
* tweak
* generate notebooks
* tweak
---------
Co-authored-by: gradio-pr-bot <gradio-pr-bot@users.noreply.github.com>
* Fix typo envrion -> environ (#6585 )
* Feat: make UploadButton accept icon (#6584 )
* feat: make UploadButton accept icon
* add changeset
* add proxy url prop
* add stories
---------
Co-authored-by: Abubakar Abid <abubakar@huggingface.co>
Co-authored-by: gradio-pr-bot <gradio-pr-bot@users.noreply.github.com>
* Make FileExplorer work on python 3.8 and 3.9. Also make it update on changes to root, glob, or glob_dir (#6550 )
* Add code
* add changeset
* add changeset
* Add test
* fix
---------
Co-authored-by: gradio-pr-bot <gradio-pr-bot@users.noreply.github.com>
* Fix uploaded file wasn't moved to custom temp dir at different disks (#6565 )
* Fix uploaded file wasn't moved to custom temp dir at different disks
* add changeset
* Update routes.py
---------
Co-authored-by: gradio-pr-bot <gradio-pr-bot@users.noreply.github.com>
Co-authored-by: Freddy Boulton <alfonsoboulton@gmail.com>
* Fix the docstring decoration (#5885 )
* Fix the docstring of the `Slider` class
* add changeset
* Update the JSON file generator to output a new field .styled_description to render the inline code syntax in the description field
* add changeset
* Update style_types() to deal with backticks and single asterisks
* Update the inline style converter to use regex for the curly bracket syntax as well
* Revert `style_types()` not to touch the `description` field and update the frontend code to apply styling to such formatted texts on Svelte's side
* Apply the inline styler to other `.description` field appearances
* Apply the inline styler to `.preprocessing`, `.postprocessing`, `.examples-format`, `.events`, and `*.parameters.doc`
* Stop applying HTML styles to the JSON data, instaed apply HTML escaping
* Escape HTML tokens in .parameters[]["doc"] too
* fixes
---------
Co-authored-by: gradio-pr-bot <gradio-pr-bot@users.noreply.github.com>
Co-authored-by: Ali Abdalla <ali.si3luwa@gmail.com>
* chore(deps): update all non-major dependencies (#6593 )
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
* chore(deps): update dependency jsdom to v23 (#6582 )
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
Co-authored-by: Abubakar Abid <abubakar@huggingface.co>
* Update zh-CN.json (#6512 )
* Update zh-CN.json
* add changeset
* format
---------
Co-authored-by: gradio-pr-bot <gradio-pr-bot@users.noreply.github.com>
Co-authored-by: Abubakar Abid <abubakar@huggingface.co>
* Fix: Gradio Client work with private Spaces (#6602 )
* client with private space
* add changeset
* lint
* add test
---------
Co-authored-by: gradio-pr-bot <gradio-pr-bot@users.noreply.github.com>
* Update file_explorer.py - Fixing error if nothing selected in file_count=single mode (return None rather) (#6607 )
* Update file_explorer.py
Fixing error if nothing selected in file_count=single mode (return None rather)
* add changeset
* added unit tests
---------
Co-authored-by: Abubakar Abid <abubakar@huggingface.co>
Co-authored-by: gradio-pr-bot <gradio-pr-bot@users.noreply.github.com>
* Remove 2 slider demos from docs (#6624 )
* remove 2 slider demos
* add changeset
---------
Co-authored-by: gradio-pr-bot <gradio-pr-bot@users.noreply.github.com>
* Fix encoding issue #6364 of reload mode (#6622 )
* fix: configure default encoding as utf-8
* apply doc change for the fix
* apply cn doc change for the fix
* add changeset
* Lint
---------
Co-authored-by: Freddy Boulton <alfonsoboulton@gmail.com>
Co-authored-by: gradio-pr-bot <gradio-pr-bot@users.noreply.github.com>
* Quick Image + Text Component Fixes (#6635 )
* fixes
* add changeset
---------
Co-authored-by: gradio-pr-bot <gradio-pr-bot@users.noreply.github.com>
* Improve video trimming and error handling (#6566 )
* amend trimming logic and return original file when error occurs
* add interactive story test
* add changeset
* add changeset
---------
Co-authored-by: gradio-pr-bot <gradio-pr-bot@users.noreply.github.com>
* Add `show_recording_waveform` to Audio (#6551 )
* add show_recording_waveform
* add changeset
* add animation
* Refactor audio component and waveform options
* formatting
* add margin before audio controls
* amend default values
* expose gr.WaveformOptions
* Tweak waveform options types and handle none
* add waveform_options to reverse_audio
* tweak bool typing
* notebook
---------
Co-authored-by: gradio-pr-bot <gradio-pr-bot@users.noreply.github.com>
Co-authored-by: Abubakar Abid <abubakar@huggingface.co>
* chore(deps): update dependency chromatic to v10 (#6619 )
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
* chore(deps): update chromaui/action action to v10 (#6618 )
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
* Add concurrency_limit to ChatInterface, add IDE support for concurrency_limit (#6653 )
* concurrency limit chat interface
* add changeset
* Update gradio/chat_interface.py
Co-authored-by: Abubakar Abid <abubakar@huggingface.co>
---------
Co-authored-by: gradio-pr-bot <gradio-pr-bot@users.noreply.github.com>
Co-authored-by: Abubakar Abid <abubakar@huggingface.co>
* format (#6658 )
* Removes smooth scrolling from website (#6650 )
* smooth scrolling with css
* add changeset
* formatting
* remove smooth scrolling
* add changeset
---------
Co-authored-by: gradio-pr-bot <gradio-pr-bot@users.noreply.github.com>
* chore: update versions (#6575 )
Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
* Fix reload mode warning about not being able to find the app (#6660 )
* Fix warning
* add changeset
* Use *
---------
Co-authored-by: gradio-pr-bot <gradio-pr-bot@users.noreply.github.com>
* Update HF token used in CI tests (#6671 )
* fix tests
* format
* fixes
* add changeset
* fixes
* fix
* fix
* update
* update
* test client
* format
* hf token 2
* add changeset
* add env
* add envs
* tests
* env
* fixes
* test external
* add changeset
---------
Co-authored-by: gradio-pr-bot <gradio-pr-bot@users.noreply.github.com>
* use gr.Error for audio length errors (#6672 )
* use gr.Error for audio length errors
* add changeset
---------
Co-authored-by: gradio-pr-bot <gradio-pr-bot@users.noreply.github.com>
* Issue 5245: consolidate usage of requests and httpx (#6598 )
* issue 5245 commit 1
* formatted
* add changeset
* fixes
* fixes
* make changes in client too
* remove requests from client
* add changeset
* add changeset
* Fixes to test_utils.py in client
* fixes in client utils.py and test_utils.py
---------
Co-authored-by: gradio-pr-bot <gradio-pr-bot@users.noreply.github.com>
Co-authored-by: Abubakar Abid <abubakar@huggingface.co>
* Remove Discourse Forum Link from Website (#6679 )
* remove forum link
* add changeset
---------
Co-authored-by: gradio-pr-bot <gradio-pr-bot@users.noreply.github.com>
* Tweak to our bug issue template (#6677 )
* template
* add timeouts
* add changeset
---------
Co-authored-by: gradio-pr-bot <gradio-pr-bot@users.noreply.github.com>
* Set gradio api server from env (#6666 )
* Use GRADIO_API_SERVER env
* Format the code
* add changeset
* Use env GRADIO_SHARE_SERVER_ADDRESS as default share_server_address
---------
Co-authored-by: gradio-pr-bot <gradio-pr-bot@users.noreply.github.com>
Co-authored-by: Abubakar Abid <abubakar@huggingface.co>
* Render each app in the PR's spaces preview in a separate page (#6657 )
* Use template response
* minor fix
* Return type hint
* add changeset
* Remove return types
* response_class=None
* Use relative path
* SPA
* remove pydantic pin
* Revert
* delete changeset
* Overflow hidden on body
* text gray
* Collapsible sidebar
* max-height
* Use search params
* document.location.search
---------
Co-authored-by: gradio-pr-bot <gradio-pr-bot@users.noreply.github.com>
* perf guide (#6673 )
* switch from black to ruff formatter (#6543 )
* migrate from black to ruff
* fix script and dependencies
* applying ruff
* add changeset
* add changeset
* address ruff feedback
* replace linter
* fixed typing
* fix typing
---------
Co-authored-by: Abubakar Abid <abubakar@huggingface.co>
Co-authored-by: gradio-pr-bot <gradio-pr-bot@users.noreply.github.com>
* Cause `gr.ClearButton` to reset the value of `gr.State` (#6680 )
* state
* note
* add changeset
* buttons
* clear button
* lint
* if
* clear'
* reset state
* fix test
---------
Co-authored-by: gradio-pr-bot <gradio-pr-bot@users.noreply.github.com>
* Fix dropdown blur bug when values are provided as tuples (#6694 )
* fix dropdown blur bug
* add changeset
---------
Co-authored-by: gradio-pr-bot <gradio-pr-bot@users.noreply.github.com>
* type fix
* test
* Remove the styles from the Image/Video primitive components and Fix the container styles (#6726 )
* Remove the styles from the Image/Video primitive components and Fix the container styles
* add changeset
* Fix image example size styles
* Remove border from image/Example with type=gallery
---------
Co-authored-by: gradio-pr-bot <gradio-pr-bot@users.noreply.github.com>
* test fix
* add changeset
* test fix
* add changeset
* test
* test fix
* test fix audio video
* format
* fix obj file issue
---------
Co-authored-by: gradio-pr-bot <gradio-pr-bot@users.noreply.github.com>
Co-authored-by: Abubakar Abid <abubakar@huggingface.co>
Co-authored-by: Hannah <hannahblair@users.noreply.github.com>
Co-authored-by: Simon Duerr <dev@simonduerr.eu>
Co-authored-by: Xiang Liao <liao1120x@gmail.com>
Co-authored-by: Freddy Boulton <alfonsoboulton@gmail.com>
Co-authored-by: Dody Suria Wijaya <dody@cryptolab.net>
Co-authored-by: Yuichiro Tachibana (Tsuchiya) <t.yic.yt@gmail.com>
Co-authored-by: Ali Abdalla <ali.si3luwa@gmail.com>
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
Co-authored-by: yanlin <59528590+cibimo@users.noreply.github.com>
Co-authored-by: v-chabaux <149407738+v-chabaux@users.noreply.github.com>
Co-authored-by: Lihao Lei <leilei199708@gmail.com>
Co-authored-by: pngwn <hello@pngwn.io>
Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
Co-authored-by: cswamy <101974014+cswamy@users.noreply.github.com>
Co-authored-by: aisensiy <aisensiy@163.com>
Co-authored-by: D V <77478658+DarhkVoyd@users.noreply.github.com>
2023-12-13 14:48:39 -08:00
Freddy Boulton
34f943101b
Python client properly handles hearbeat and log messages. Also handles responses longer than 65k ( #6693 )
...
* first commit
* newlines
* test
* Fix depends
* revert
* add changeset
* add changeset
* Lint
* queue full test
* Add code
* Update + fix
* add changeset
* Revert demo
* Typo in success
* Fix
---------
Co-authored-by: gradio-pr-bot <gradio-pr-bot@users.noreply.github.com>
Co-authored-by: Abubakar Abid <abubakar@huggingface.co>
2023-12-13 17:47:06 -05:00
Philippe Manzano
a3cf90e57b
view_api instead of view_info ( #6773 )
2023-12-13 09:57:53 -08:00
pngwn
1459119c6e
chore: update versions ( #6670 )
...
* chore: update versions
* change
---------
Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
Co-authored-by: Ali Abid <ubuntu@ip-172-31-25-241.us-west-2.compute.internal>
2023-12-12 18:32:54 -08:00
Freddy Boulton
c9673cacd6
Fix directory-only glob for FileExplorer ( #6689 )
...
* Fix glob
* add changeset
* Fix test
* lint
* sort
* Remove empty
* Select directory + test
* Workign fix
* WOrkign fix
* Directory click 😅
* add changeset
* Fix test
* Add dirs
* Select directory + test
* WOrkign fix
* Directory click 😅
* WIP
* add code
* Lint
* Use same color as file icon
* Fix test
---------
Co-authored-by: gradio-pr-bot <gradio-pr-bot@users.noreply.github.com>
2023-12-12 16:39:11 -08:00
aliabid94
6a9151d5c9
Remove progress animation on streaming ( #6709 )
...
* changes
* add changeset
* changes
* chagnes
---------
Co-authored-by: Ali Abid <ubuntu@ip-172-31-25-241.us-west-2.compute.internal>
Co-authored-by: gradio-pr-bot <gradio-pr-bot@users.noreply.github.com>
2023-12-12 16:01:40 -08:00
aliabid94
d76bcaaaf0
Fix api event drops ( #6556 )
...
* changes
* changes
* add changeset
* changes
* changes
* changes
* changs
* chagnes
* changes
* changes
* changes
* changes
* changes
* changes
* changes
* changes
* changes
* changes~git push
* changes
* changes
* changes
* changes
* changes
* changes
* changes
* changes
* changes
* changes
* changes
* changes
* change
* changes
* changes
* changes
* changes
---------
Co-authored-by: gradio-pr-bot <gradio-pr-bot@users.noreply.github.com>
Co-authored-by: Ubuntu <ubuntu@ip-172-31-25-241.us-west-2.compute.internal>
Co-authored-by: Abubakar Abid <abubakar@huggingface.co>
2023-12-12 15:24:46 -08:00
Yuichiro Tachibana (Tsuchiya)
67ddd40b4b
Lite v4 ( #6398 )
...
* Fix vite.config.js detecting the development mode
* Fix the imports of @gradio/theme in js/app/src/lite/index.ts
* [WIP] Install Pydantic V1 and mock the RootModel class
* Remove Wasm WebSocket implementations
* Move ASGI-HTTP conversion logic from the worker to the worker-proxy so we have fine controls on the ASGI connection at the worker-proxy level for the HTTP stream connection impl in the future
* Fix asgi-types.ts
* Create `WasmWorkerEventSource` and inject the `EventSource` creation in @gradio/client
* Mock Pydantic V2's BaseModel
* Fix Pydantic V1 installation
* Make <ImageUploader /> and <ImagePreview /> Wasm-compatible
* Create `getHeaderValue()`
* Create `<DownloadLink />` for Wasm-compatible download and fix `<ImagePreview />` to use it
* Make `gr.Video()` Wasm-compatible avoiding unnecessary execution of ffprobe
* Move `<DownloadLink />` to @gradio/wasm and use it in `<VideoPreview />` too
* Fix `<DownloadLink />` making `href` optional and adding `rel="noopener noreferrer"`
* Make the download button of `<StaticAudio>` and `<Code />` Wasm-compatible
* Make the download button of `<FilePreview />` Wasm-compatible
* Improve the RootModel mock class for `.model_dump()` and `.model_json_schame()` to work
* Make `<UploadProgress />` Wasm-compatible
* Fix `WorkerProxy.httpRequest()` to use `decodeURIComponent()` to process `path` and `query_string`
* Fix `<InteractiveAudio />` to make its upload feature Wasm-compatible
* [WIP] Revert "Make `<UploadProgress />` Wasm-compatible"
This reverts commit f96b4b7d5e92bb488cfe1939d25063366f714178.
* Fix Image styles
* Fix `<AudioPlayer />`'s `create_waveform()` to be Wasm-compatible
* add changeset
* formatting
* Fix js/image/shared/Image.svelte to render <img> immediately
* Fix js/image/shared/Image.svelte to avoid race condition
* Fix js/image/shared/Image.svelte
* Fix js/image/shared/Image.svelte
* Fix js/image/shared/Image.svelte removing unnecessary styles
* Fix js/video/shared/Video.svelte to use the passed immediately without waiting for the async resolution
---------
Co-authored-by: gradio-pr-bot <gradio-pr-bot@users.noreply.github.com>
Co-authored-by: aliabd <ali.si3luwa@gmail.com>
Co-authored-by: Abubakar Abid <abubakar@huggingface.co>
2023-12-12 22:10:16 +00:00
Dawood Khan
9a6ff704cd
Fix issue with head
param when adding more than one script tag ( #6639 )
...
* fix
* Revert "fix"
This reverts commit 86783c834d
.
* fix
* add changeset
* fix
* add external js file functionality
* format
---------
Co-authored-by: gradio-pr-bot <gradio-pr-bot@users.noreply.github.com>
2023-12-12 14:00:44 -08:00
Yoann Poupart
28a7aa917f
Mount on a FastAPI app with lifespan manager ( #6759 )
...
* initial context manager fix
* add changeset
---------
Co-authored-by: gradio-pr-bot <gradio-pr-bot@users.noreply.github.com>
2023-12-12 16:40:03 -05:00
pngwn
f3c4d78b71
reload on css changes + fix css specificity ( #6738 )
...
* reload on css changes + fix css specificity
* add changeset
* tweak
* fix rollup version
* add changeset
* tweak
---------
Co-authored-by: gradio-pr-bot <gradio-pr-bot@users.noreply.github.com>
2023-12-12 15:32:38 +00:00
Yuichiro Tachibana (Tsuchiya)
21cfb0acc3
Remove the styles from the Image/Video primitive components and Fix the container styles ( #6726 )
...
* Remove the styles from the Image/Video primitive components and Fix the container styles
* add changeset
* Fix image example size styles
* Remove border from image/Example with type=gallery
---------
Co-authored-by: gradio-pr-bot <gradio-pr-bot@users.noreply.github.com>
2023-12-11 23:15:02 +01:00
多啦b梦
a1b966edf7
Fixed an issue where files could not be filed ( #6754 )
...
* Fixed an issue where files could not be filed
* add changeset
---------
Co-authored-by: gradio-pr-bot <gradio-pr-bot@users.noreply.github.com>
2023-12-11 15:31:34 -05:00
Hannah
3240d042e9
Add editable
parameter to Audio ( #6745 )
...
* add editable param to audio and add story
* add changeset
* fix test
* fix test again
* tweak
---------
Co-authored-by: gradio-pr-bot <gradio-pr-bot@users.noreply.github.com>
2023-12-11 18:42:21 +01:00
Freddy Boulton
21ce721bbd
Custom component gallery ( #6477 )
...
* initial commit
* First draft
* add changeset
* better close button
* Improve card
* Switch
* Add code
* Add code
* Use icons folder + snake_case
* lockfile fix
---------
Co-authored-by: gradio-pr-bot <gradio-pr-bot@users.noreply.github.com>
2023-12-11 11:59:36 -05:00
Hannah
4d1cbbcf30
Allow passing height and width as string in Blocks.svelte
( #6569 )
...
* Allow % string in blocks
Modify docstring in chatbot
* add % height chatbot story
* add changeset
* typo 🥲
* func tweak
* formatting
* add changeset
* add changeset
* add str to height params
* update docstring for height
* Allow passing width as a string
Update width docstrings
* formatting
* add changeset
* add width/height param description
* tweak
---------
Co-authored-by: gradio-pr-bot <gradio-pr-bot@users.noreply.github.com>
2023-12-11 15:58:04 +01:00
Yuichiro Tachibana (Tsuchiya)
bdf81fead8
Lite: Set the home dir path per appId at each runtime ( #6432 )
...
* Set the home dir path per appId at each runtime
* Add a comment
* add changeset
---------
Co-authored-by: gradio-pr-bot <gradio-pr-bot@users.noreply.github.com>
Co-authored-by: Ali Abdalla <ali.si3luwa@gmail.com>
2023-12-11 15:31:25 +01:00
Dr. Christoph Mittendorf
9cff3cd856
Update helpers.sh ( #6733 )
...
grammer
2023-12-11 12:42:29 +00:00
Dr. Christoph Mittendorf
c6e48c8670
Update test-strategy.md ( #6725 )
...
Grammer check and spelling
2023-12-11 12:37:59 +00:00
Dr. Christoph Mittendorf
81710dacf2
Update CONTRIBUTING.md ( #6731 )
...
fixing typos
2023-12-11 12:37:19 +00:00
Yuichiro Tachibana (Tsuchiya)
9a5811df92
Fix the download button of the gr.Gallery()
component to work ( #6487 )
...
* Fix the download button of the `gr.Gallery()` component to work
* Refactoring js/gallery/shared/Gallery.svelte
* Fix `gr.Gallery()` to set `orig_name` for URLs
* Fix Gallery.postprocess()
* Fix `download()` to fallback to `window.open()` when CORS is not allowed
* Fix `gr.Gallery` to leave as None so it will be replaced with a local cache path and restore the `<a>` tag-based download feature on the frontend
* Align a variable name to its type name
* Fix Gallery's tests
* Fix the frontend test for gallery
* Revert "Fix `gr.Gallery` to leave as None so it will be replaced with a local cache path and restore the `<a>` tag-based download feature on the frontend"
This reverts commit d754980cc27ded760bfc26df4310f913c2c6944a.
* Revert "Fix Gallery's tests"
This reverts commit 4e2aa3fff1
.
* Revert "Fix the frontend test for gallery"
This reverts commit 007caa23e7
.
* Fix for linter
* Add a test about the download button
* Fix type defs on Gallery.postprocess
* Improve TestGallery
* add changeset
* Update gradio/components/gallery.py
Co-authored-by: Abubakar Abid <abubakar@huggingface.co>
* Update gradio/components/gallery.py
Co-authored-by: Abubakar Abid <abubakar@huggingface.co>
* Revert "Update gradio/components/gallery.py"
This reverts commit 4d6e127305
.
* Revert "Update gradio/components/gallery.py"
This reverts commit f2bfad0744
.
* Use `tuple` instead of `typing.Tuple`
* Revert "Use `tuple` instead of `typing.Tuple`"
This reverts commit 69ab93cad4
.
---------
Co-authored-by: gradio-pr-bot <gradio-pr-bot@users.noreply.github.com>
Co-authored-by: Abubakar Abid <abubakar@huggingface.co>
2023-12-09 17:58:19 +01:00
Yuichiro Tachibana (Tsuchiya)
5177132d71
Lite: Fix the isMessagePort()
type guard in js/wasm/src/worker-proxy.ts ( #6416 )
...
* Fix the `isMessagePort()` type guard in js/wasm/src/worker-proxy.ts
* add changeset
---------
Co-authored-by: gradio-pr-bot <gradio-pr-bot@users.noreply.github.com>
Co-authored-by: Ali Abdalla <ali.si3luwa@gmail.com>
2023-12-08 20:32:27 +01:00
Hannah
128ab5d65b
Ensure checked files persist after FileExplorer rerenders ( #6691 )
...
* add tree_updated flag
* add changeset
* add changeset
* test
* generate notebooks
---------
Co-authored-by: gradio-pr-bot <gradio-pr-bot@users.noreply.github.com>
2023-12-08 19:27:25 +01:00
Hannah
053bec98be
Improve CSS token documentation in Storybook ( #6399 )
...
* remove width and heights from icons
* add changeset
* add global css vars (light)
* add changeset
* add changeset
* Remove component stories (will document these elsewhere)
* remove rtl param in chatbot story for non rtl text
* formatting
* remove redundant class
* add changeset
* fix row story
* fix broken groot file stories
* revert lock changes
* add changeset
* lockfile
* pnpm lock
* remove colour from webcam icons
* add changeset
---------
Co-authored-by: gradio-pr-bot <gradio-pr-bot@users.noreply.github.com>
2023-12-08 16:23:14 +01:00