Freddy Boulton
c60ad4d34a
Use Gallery as input component ( #7148 )
...
* Gallery as input
* add changeset
* Add keep_captions parameter
* revert notebooks
* fix docstring typo
* use tuples
* remove keep_captions
* Update js/app/test/gallery_component_events.spec.ts
Co-authored-by: pngwn <hello@pngwn.io>
* more precise type hint
---------
Co-authored-by: gradio-pr-bot <gradio-pr-bot@users.noreply.github.com>
Co-authored-by: pngwn <hello@pngwn.io>
2024-01-25 18:51:59 -05:00
Freddy Boulton
e7ab4063eb
Fix ParamViewer css ( #7130 )
...
* Fix ParamViewer styles
* add changeset
* Fix description background color
* ParamViewer
* bottom border
* tweak
---------
Co-authored-by: gradio-pr-bot <gradio-pr-bot@users.noreply.github.com>
Co-authored-by: pngwn <hello@pngwn.io>
2024-01-25 16:11:38 -05:00
Yuichiro Tachibana (Tsuchiya)
be56c76c7b
Lite: Add the home_dir
to sys.path
( #7150 )
...
* Add the `home_dir` to `sys.path`
* add changeset
---------
Co-authored-by: gradio-pr-bot <gradio-pr-bot@users.noreply.github.com>
2024-01-25 16:43:13 +09:00
Dawood Khan
ca8753bb3d
Fixes: Chatbot crashes when given empty url following http:// or https:// ( #7138 )
...
* link fix
* add changeset
* add unit test
* format
---------
Co-authored-by: gradio-pr-bot <gradio-pr-bot@users.noreply.github.com>
2024-01-24 23:01:38 -05:00
pngwn
6654a32eba
start cc docs guide ( #7080 )
...
* start cc docs guide
* add changeset
* complete guide
* proof + edit
* tweaks
* Update .vscode/settings.json
* Update guides/05_custom-components/09_documenting-custom-components.md
* update 5 min guide
---------
Co-authored-by: gradio-pr-bot <gradio-pr-bot@users.noreply.github.com>
2024-01-24 21:43:02 +00:00
Yuichiro Tachibana (Tsuchiya)
8c355a4784
Add ruff mock for Lite ( #7133 )
...
* Add ruff mock for Lite
* add changeset
---------
Co-authored-by: gradio-pr-bot <gradio-pr-bot@users.noreply.github.com>
2024-01-24 13:10:55 -08:00
Abubakar Abid
5727b92abc
Allow buttons to take null value ( #7126 )
...
* allow buttons to take null value
* add changeset
* add story
* format
---------
Co-authored-by: gradio-pr-bot <gradio-pr-bot@users.noreply.github.com>
2024-01-24 13:10:00 -08:00
pngwn
125a832ab7
generate docs when running gradio cc build
( #7109 )
...
* add docs command to build
* add changeset
* add changeset
* add arg to disable
* add changeset
* tweaks
* tweaks
* tweaks
* add changeset
---------
Co-authored-by: gradio-pr-bot <gradio-pr-bot@users.noreply.github.com>
2024-01-24 18:12:18 +00:00
Abubakar Abid
45f725f8d0
un-disable output components after exception is raised ( #7125 )
...
* renable output components after exception
* add changeset
* add changeset
* add changeset
---------
Co-authored-by: gradio-pr-bot <gradio-pr-bot@users.noreply.github.com>
2024-01-23 14:52:21 -08:00
Hannah
bc2cdc1df9
Allow download button for interactive Audio and Video components ( #7104 )
...
* allow download button for interactive audio and video components
* add changeset
* document show_download_button in video.py
* ensure show_download_button is by default true for output and false for input components
* fix component test
* tweak default val
* val tweak
* fix test and add story
* pass editable param where needed
* fix another test
---------
Co-authored-by: gradio-pr-bot <gradio-pr-bot@users.noreply.github.com>
Co-authored-by: Dawood Khan <dawoodkhan82@gmail.com>
2024-01-23 11:33:59 +01:00
Hannah
c35fac049a
Ensure device selection works in Audio when streaming ( #7082 )
...
* Fix microphone device access denied issue
* add changeset
* add microphone test
* create shared DeviceSelect component
* add changeset
* add e2e test
* regen notebooks
* formatting
* Fix e2e test
* formatting
* adjust controls box
---------
Co-authored-by: gradio-pr-bot <gradio-pr-bot@users.noreply.github.com>
2024-01-23 10:49:29 +01:00
Hannah
80f8fbf0e8
Add logic to handle non-interactive or hidden tabs ( #7107 )
...
* Refactor change_tab function to handle non-interactive or hidden tabs
* add changeset
* Refactor flashcards app UI and modify test
* Fix formatting
---------
Co-authored-by: gradio-pr-bot <gradio-pr-bot@users.noreply.github.com>
2024-01-22 23:31:59 -08:00
Hannah
13cb6af8b2
Ensure microphone devices list updates ( #7045 )
...
* Fix microphone device access denied issue
* add changeset
* add microphone test
---------
Co-authored-by: gradio-pr-bot <gradio-pr-bot@users.noreply.github.com>
2024-01-22 16:19:48 -08:00
aliabid94
94aa271ab1
Improve rapid generation performance via UI throttling ( #7084 )
...
* changes
* add changeset
---------
Co-authored-by: Ali Abid <aliabid@Alis-MacBook-Pro.local>
Co-authored-by: gradio-pr-bot <gradio-pr-bot@users.noreply.github.com>
2024-01-22 11:53:19 -08:00
tsukumi
e8b2d8b2f8
Add sample rate config option to gr.Audio()
( #6826 )
...
* Fix a bug that caused the sample rate of audio to be 8000 Hz after trimming and a bug that caused volume amplification and clipping each time trimming was performed
* Fix format
* add changeset
* add sample_rate param to waveform_options
* add changeset
* set WaveformOptions defaults
* formatting
* formatting
* add changeset
* audio
* changes
* add changeset
* tweak sample rate logic + docstring
* Tweak docstring
* formatting
* linting
* type tweak
* remove redundant None check
* tweak waveform lifecycle
* fix test
---------
Co-authored-by: tsukumi <tsukumijima@users.noreply.github.com>
Co-authored-by: Hannah <hannahblair@users.noreply.github.com>
Co-authored-by: gradio-pr-bot <gradio-pr-bot@users.noreply.github.com>
Co-authored-by: Abubakar Abid <abubakar@huggingface.co>
2024-01-22 10:56:48 -08:00
Hannah
44c53d9bde
Fix dropdown refocusing due to <label />
element ( #7081 )
...
* Remove extra blur causing refocus bug and add a11y tweaks
* change label to div causing reopen of dropdown
* add changeset
* Tweak label attribute
* fix browser test
* formatting
---------
Co-authored-by: gradio-pr-bot <gradio-pr-bot@users.noreply.github.com>
Co-authored-by: Abubakar Abid <abubakar@huggingface.co>
2024-01-22 10:32:27 -08:00
Ali Abdalla
dfe1f08ae2
Style changes to custom components gallery ( #6970 )
...
* style and other changes
* add changeset
* many changes
* smaller description and remove fallback
* better loading and add space link
* formatting
---------
Co-authored-by: gradio-pr-bot <gradio-pr-bot@users.noreply.github.com>
2024-01-20 03:02:56 +04:00
Monius
1718c4aeb2
add STL 3D model support ( #7049 )
...
* add STL 3D model support
* add changeset
* add model3D demo with stl support
* add NASA open-soure SOFIA STL model source
* modify model3D instead
* fix notebook
---------
Co-authored-by: gradio-pr-bot <gradio-pr-bot@users.noreply.github.com>
Co-authored-by: freddyaboulton <alfonsoboulton@gmail.com>
2024-01-19 15:08:38 -05:00
pngwn
0a2ba5d0b0
chore: update versions ( #7004 )
...
Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
2024-01-19 00:13:02 -05:00
pngwn
07d520c7a2
fix versions ( #7069 )
...
* fix versoin
* add changeset
* fix lockfile
* add changeset
---------
Co-authored-by: gradio-pr-bot <gradio-pr-bot@users.noreply.github.com>
2024-01-18 21:01:42 +00:00
pngwn
3a944ed9f1
add autodocs ( #7030 )
...
* add autodocs
* remove unused code
* add changeset
* fix all of the things
* fix all of the things
* add changeset
* fix things
* tewak
* fix dep
* add ruff as dep with min version
* make output pretty + fix bugs
* tweaks
* fixes
* fix types maybe
* fix arg refs
* fix test
* fix md
* add error for version
* fix test
---------
Co-authored-by: gradio-pr-bot <gradio-pr-bot@users.noreply.github.com>
2024-01-18 20:47:01 +00:00
Dawood Khan
3f139c7c99
Fix File drag and drop for specific file_types ( #6982 )
...
* fix file drag
* add changeset
* pr fixes
* test
* add changeset
* tests
* fix
* type fix
* add changeset
* functional test fix
---------
Co-authored-by: gradio-pr-bot <gradio-pr-bot@users.noreply.github.com>
Co-authored-by: Freddy Boulton <alfonsoboulton@gmail.com>
2024-01-17 18:12:15 -05:00
Freddy Boulton
6be3c2c47a
Fix Chatbot custom component template ( #7038 )
...
* move to core dependency
* add changeset
* lockfile
---------
Co-authored-by: gradio-pr-bot <gradio-pr-bot@users.noreply.github.com>
2024-01-17 10:52:14 -05:00
Hannah
ec28b4e7c4
Add visible
and interactive
params to gr.Tab()
( #7018 )
...
* add tabs params and visible logic
* add disabled logic
* add tabbed_interface logic
* add tab accessibility improvements
* Add aria-disabled attribute to tab buttons
* add e2e test
* add changeset
* add changeset
* add tab e2e test
* formatting
* run generate_notebooks.py
* lint
* ensure tabs values update
* remove tabbedinterface logic
* Remove unused parameters from TabbedInterface constructor
* remove test
* add test
* add changeset
* formatting
---------
Co-authored-by: gradio-pr-bot <gradio-pr-bot@users.noreply.github.com>
2024-01-17 14:39:10 +01:00
Hannah
f2d69fc7d0
Fix gallery thumbnail design regression ( #7024 )
...
* tweak image thumbnail object fit
* add changeset
---------
Co-authored-by: gradio-pr-bot <gradio-pr-bot@users.noreply.github.com>
2024-01-15 16:51:42 +01:00
Abubakar Abid
9cefd2e90a
Refactor examples so they accept data in the same format as is returned by function, rename .as_example()
to .process_example()
( #6933 )
...
* image-editor-examples
* add changeset
* add changeset
* delete changeset
* change to process_example()
* add changeset
* changes for all components until dataset.py
* rename
* fix checkboxgroup
* format
* changes
* add changeset
* changes
* add changeset
* radio
* add changeset
* changes
* add changeset
* changes
* examples
* remove print
* fix
* clean
* add changeset
* fix tests
* fix tests
* fix test
* fix
* add changeset
* fix video example
* add changeset
---------
Co-authored-by: gradio-pr-bot <gradio-pr-bot@users.noreply.github.com>
2024-01-10 16:35:25 -08:00
Dawood Khan
523b6bc534
gr.update(value=[])
for gr.File()
clears it (#6980 )
...
* bug fix
* add changeset
* Update js/file/shared/File.svelte
Co-authored-by: aliabid94 <aabid94@gmail.com>
---------
Co-authored-by: gradio-pr-bot <gradio-pr-bot@users.noreply.github.com>
Co-authored-by: aliabid94 <aabid94@gmail.com>
2024-01-10 19:14:33 -05:00
pngwn
8b5174c96d
chore: update versions ( #7002 )
...
Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
2024-01-10 15:31:28 -08:00
Ali Abdalla
a7db8c1b8a
Add env to lite build ( #7000 )
...
* add venv
* comma
* add changeset
---------
Co-authored-by: gradio-pr-bot <gradio-pr-bot@users.noreply.github.com>
2024-01-10 15:22:22 -08:00
Abubakar Abid
576b7ce827
lite build fix: install build package ( #6999 )
...
* install build package
* add changeset
---------
Co-authored-by: gradio-pr-bot <gradio-pr-bot@users.noreply.github.com>
2024-01-10 14:59:18 -08:00
Ali Abdalla
523c08fe30
Design changes to Playground ( #6997 )
...
* design changes to playground
* formatting
* add changeset
* share your app
* tweak
* 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>
2024-01-11 02:39:20 +04:00
pngwn
8f69f9ef50
chore: update versions ( #6960 )
...
Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
2024-01-11 01:42:25 +04:00
pngwn
0b1f68d2db
bump lite to match gradio ( #6996 )
...
* bump lite to match gradio
* add changeset
---------
Co-authored-by: gradio-pr-bot <gradio-pr-bot@users.noreply.github.com>
2024-01-10 13:14:53 -08:00
Ali Abdalla
71aab1c617
Add README to @gradio/lite ( #6989 )
...
* add readme
* add changeset
* Update js/lite/README.md
Co-authored-by: Abubakar Abid <abubakar@huggingface.co>
* Update js/lite/README.md
Co-authored-by: Abubakar Abid <abubakar@huggingface.co>
* remove private from lite package.json
* add note on cdn
---------
Co-authored-by: gradio-pr-bot <gradio-pr-bot@users.noreply.github.com>
Co-authored-by: Abubakar Abid <abubakar@huggingface.co>
2024-01-10 23:20:00 +04:00
Yuichiro Tachibana (Tsuchiya)
5d00dd37ca
Make <UploadProgress /> Wasm-compatible ( #6965 )
...
* Make <UploadProgress /> Wasm-compatible
* add changeset
* Fix <DownloadLink /> not to prefetch the data in the Wasm mode
* add changeset
* Fix <DownloadLink /> to check the `window` object existence for SSR
* Lite: Fix and improve the file upload progress SSE (#6978 )
* Update the Wasm ASGI connection to be able handle ReadableStream, which is used for example in <Upload />"
* Fix wasm_proxied_fetch() not to pass a leading '?' in the query_string to WorkerProxy.httpRequest() because it's required by the ASGI spec
* Fix FileUploadProgress.update() to merge a new item to the existing one in the queue
* Fix the SSE stream async task in the /upload_progress endpoint removing an unreached code block. `await asyncio.sleep()` has been moved from the unreached block to a live location, so the stream cadence has been reduced
* Fix `FileUploadProgress` to manage the `is_done` flag independent from the queue because it has a different semantics and checking it is a priority over reading other progress events to abort the SSE stream when uploading is done
* Refactoring
---------
Co-authored-by: gradio-pr-bot <gradio-pr-bot@users.noreply.github.com>
Co-authored-by: Ali Abdalla <ali.si3luwa@gmail.com>
2024-01-10 21:27:58 +04:00
Hannah
0f0498bf97
Ensure Chatbot theme text size is set correctly ( #6958 )
...
* set font size to text body variable
* revert comment
* add changeset
* remove line height
* add function to adjust body text size to prevent breaking change
---------
Co-authored-by: gradio-pr-bot <gradio-pr-bot@users.noreply.github.com>
2024-01-10 13:41:35 +01:00
aliabid94
6e285be8ed
Fix the reloader ( #6983 )
...
* changes
* add changeset
* changes
* add changeset
* changes
* changes
* changes
* changes
* changes
---------
Co-authored-by: Ali Abid <aliabid@Alis-MacBook-Pro.local>
Co-authored-by: gradio-pr-bot <gradio-pr-bot@users.noreply.github.com>
2024-01-09 15:18:07 -08:00
Yuichiro Tachibana (Tsuchiya)
5e0016267f
Make <Gallery /> Wasm-compatible ( #6967 )
...
* Use @gradio/image/shared/Image.svelte in the Gallery component for Wasm support
* Make the download button on the Gallery component Wasm-compatible
* add changeset
---------
Co-authored-by: gradio-pr-bot <gradio-pr-bot@users.noreply.github.com>
2024-01-09 11:34:46 +09:00
Hannah
793bf8f7b1
Display pending file in <Upload />
while waiting for upload request ( #6969 )
...
* show file to be uploaded before request begins
* add changeset
* tweak
---------
Co-authored-by: gradio-pr-bot <gradio-pr-bot@users.noreply.github.com>
2024-01-08 17:36:41 +01:00
Dawood Khan
640b7fe052
Fix issue with Webcam Recording ( #6885 )
2024-01-05 19:18:59 -05:00
pngwn
3a0a11cf42
chore: update versions ( #6882 )
...
Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
2024-01-04 16:02:25 -08:00
aliabid94
6c863af92f
Fix functional tests ( #6931 )
...
* changes
* add changeset
* add changeset
* changes
* changes
* changes
* add changeset
* changes
* changes
* changes
* changes
* changes
* changes
---------
Co-authored-by: Ali Abid <aliabid@Alis-MacBook-Pro.local>
Co-authored-by: gradio-pr-bot <gradio-pr-bot@users.noreply.github.com>
Co-authored-by: Abubakar Abid <abubakar@huggingface.co>
2024-01-04 15:39:16 -08:00
Hannah
d361a0f179
Ensure camera settings only update when necessary in Model3D ( #6871 )
...
* change reset_camera_position reactivity logic
* check for changes when resetting scene
* add changeset
* add changeset
---------
Co-authored-by: gradio-pr-bot <gradio-pr-bot@users.noreply.github.com>
2024-01-04 10:39:57 -08:00
Abubakar Abid
b1b78c2168
Fix .select
for gr.Image
, gr.CheckboxGroup
( #6942 )
...
* fix .select for Image, CheckboxGroup
* add changeset
* generate notebook
* fix
* add changeset
* fixes
* add changeset
---------
Co-authored-by: gradio-pr-bot <gradio-pr-bot@users.noreply.github.com>
2024-01-04 07:57:18 -08:00
Abubakar Abid
e671e5415f
Allow gr.ClearButton
and gr.DuplicateButton
to be made hidden (and otherwise updated) ( #6932 )
...
* clear visible
* test
* other buttons
* add changeset
* move resource to block cache
* revert
* Revert "revert"
This reverts commit 9830f253ac
.
* notebook
---------
Co-authored-by: gradio-pr-bot <gradio-pr-bot@users.noreply.github.com>
2024-01-03 11:29:16 -08:00
D
459c5dc989
replacing distutils.StrictVersion dependency for Python 3.12 ( #6938 )
...
* replacing distutils.StrictVersion dependency with packaging.version.Version after distutils deprecation (in 3.10) and removal in Python 3.12 (see https://docs.python.org/3.10/whatsnew/3.10.html#distutils-deprecated )
* add changeset
* remove distutils
* add changeset
---------
Co-authored-by: daniel <daniel@tfc.ai>
Co-authored-by: gradio-pr-bot <gradio-pr-bot@users.noreply.github.com>
Co-authored-by: Abubakar Abid <abubakar@huggingface.co>
2024-01-03 08:05:40 -08:00
Yuichiro Tachibana (Tsuchiya)
f742d0e861
Lite: Support AnnotatedImage on Wasm ( #6133 )
...
* Make AnnotatedImage Wasm-compatible
* add changeset
* Fix AnnotatedImage.svelte to render `<img>`s immediately and update their `src` values after those are resolved asynchronously
* Fix comments
* add changeset
* Rename a variable for consistency with `Image.svelte`
* Fix a variable name
* Rename to
---------
Co-authored-by: gradio-pr-bot <gradio-pr-bot@users.noreply.github.com>
Co-authored-by: Abubakar Abid <abubakar@huggingface.co>
Co-authored-by: Ali Abdalla <ali.si3luwa@gmail.com>
2024-01-02 11:43:34 +04:00
Yuichiro Tachibana (Tsuchiya)
bd11d6e570
Remove the styles on the audio elements in the Chatbot component ( #6899 )
...
* Remove the styles on the audio elements in the Chatbot component
* add changeset
---------
Co-authored-by: gradio-pr-bot <gradio-pr-bot@users.noreply.github.com>
Co-authored-by: Ali Abdalla <ali.si3luwa@gmail.com>
2024-01-02 11:41:59 +04:00
Yuichiro Tachibana (Tsuchiya)
4511d57c46
Fix the aria-label attrs in gr.Chatbot()
( #6900 )
...
* Fix the aria-label attrs in `gr.Chatbot()`
* add changeset
---------
Co-authored-by: gradio-pr-bot <gradio-pr-bot@users.noreply.github.com>
Co-authored-by: Ali Abdalla <ali.si3luwa@gmail.com>
2024-01-02 11:41:28 +04:00
Yuichiro Tachibana (Tsuchiya)
fb9c6cacd7
Lite: Chatbot ( #6897 )
...
* Make Chatbot Wasm-compatible
* Make UploadButton Wasm-compatible
* add changeset
---------
Co-authored-by: gradio-pr-bot <gradio-pr-bot@users.noreply.github.com>
Co-authored-by: Ali Abdalla <ali.si3luwa@gmail.com>
2024-01-02 11:41:10 +04:00