Gradio PR Bot
b400706fb6
chore: update versions ( #9970 )
...
Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
2024-11-27 18:10:49 -05:00
Hannah
5da6c1da47
Ensure chatbot messages are aligned correctly ( #10055 )
...
* tweak text-align logic
* * remove redundant text-align
* fix message-buttons z-index
* add changeset
* add changeset
* revert comments
---------
Co-authored-by: gradio-pr-bot <gradio-pr-bot@users.noreply.github.com>
2024-11-27 17:55:29 -05:00
Hannah
e0ed480798
Remove duplicated share icon in gr.Chatbot ( #10056 )
...
* fix double share button
* add changeset
* add changeset
---------
Co-authored-by: gradio-pr-bot <gradio-pr-bot@users.noreply.github.com>
2024-11-27 17:55:20 -05:00
Freddy Boulton
7d134e0b30
Fix example loading issue ( #10038 )
...
* fix
* Add code
* add changeset
* Fix bug
* lint
* add changeset
* fix both cache examples=False,True
* format
---------
Co-authored-by: gradio-pr-bot <gradio-pr-bot@users.noreply.github.com>
Co-authored-by: Abubakar Abid <abubakar@huggingface.co>
2024-11-27 15:11:06 -05:00
Hannah
458941c508
Allow full screen mode in interactive gr.Image ( #10054 )
...
* allow full screen mode in interactive image
* add changeset
---------
Co-authored-by: gradio-pr-bot <gradio-pr-bot@users.noreply.github.com>
Co-authored-by: Abubakar Abid <abubakar@huggingface.co>
2024-11-27 15:03:12 -05:00
郭文涛
5d36c8088d
Add gr.datetime
a param interactive:bool
( #10013 )
...
* add gr.datetime a param 'interactive:bool'
* update html with `container`
* repair
* add changeset
* changes
* changes
---------
Co-authored-by: Abubakar Abid <abubakar@huggingface.co>
Co-authored-by: gradio-pr-bot <gradio-pr-bot@users.noreply.github.com>
Co-authored-by: Ali Abid <aliabid94@gmail.com>
2024-11-27 19:41:35 +00:00
Freddy Boulton
bea3d2e363
Add api_name for ChatInterface ( #10053 )
...
* Add api_name for ChatInterface
* add changeset
* Update gradio/chat_interface.py
* Update test/test_chat_interface.py
---------
Co-authored-by: gradio-pr-bot <gradio-pr-bot@users.noreply.github.com>
Co-authored-by: Abubakar Abid <abubakar@huggingface.co>
2024-11-27 19:35:48 +00:00
Hannah
a2a3cd466c
Add show_heading
param to gr.Label ( #9987 )
...
* add hide_heading param
* amend hide heading logic for single labels
* add changeset
* add changeset
* fix test
* tweak docstring
* hide_heading -> show_heading
* add changeset
* set show_headings to true
* lint
* fix hidden top label
* fix background fill for ms and webkit
* add changeset
* Update gradio/components/label.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>
2024-11-27 19:26:23 +00:00
Freddy Boulton
ed156e258b
Fix state serialization issue ( #10036 )
...
* Fix bug
* add changeset
---------
Co-authored-by: gradio-pr-bot <gradio-pr-bot@users.noreply.github.com>
2024-11-27 14:25:02 -05:00
Hannah
c1fa13c9c0
Ensure ImageEditor brush colour is updated when changed ( #10041 )
...
* fix selected_color logic
* add changeset
* add changeset
---------
Co-authored-by: gradio-pr-bot <gradio-pr-bot@users.noreply.github.com>
Co-authored-by: Freddy Boulton <alfonsoboulton@gmail.com>
2024-11-27 18:08:45 +00:00
Hannah
d0b74ba281
Ensure toolbar stays visible for large images in ImageEditor ( #10037 )
...
* recalculate canvas dimensions for images larger than max_height
* add changeset
* tweak default height logic
* tweak height logic
---------
Co-authored-by: gradio-pr-bot <gradio-pr-bot@users.noreply.github.com>
2024-11-26 16:03:10 +00:00
Chandler-Bing
a95fda1f85
Update client.py ( #10017 )
...
Update client.py
Co-authored-by: Freddy Boulton <alfonsoboulton@gmail.com>
2024-11-25 20:17:25 +00:00
JackismyShephard
ba05a7cbb9
fix typing of launcher function ( #10030 )
...
* fix typing of launcher function
* add changeset
---------
Co-authored-by: gradio-pr-bot <gradio-pr-bot@users.noreply.github.com>
2024-11-25 20:16:23 +00:00
Freddy Boulton
7b8f1e447a
Fix double gallery close button in preview ( #10016 )
...
* Add code
* add changeset
---------
Co-authored-by: gradio-pr-bot <gradio-pr-bot@users.noreply.github.com>
2024-11-25 12:13:38 -05:00
郭文涛
1b121189f3
fix the doc problem of outdated information about concurrency_count
( #10026 )
...
* Update 01_queuing.md
* Update guides/04_additional-features/01_queuing.md
* Update guides/04_additional-features/01_queuing.md
---------
Co-authored-by: Abubakar Abid <abubakar@huggingface.co>
2024-11-23 23:47:37 -06:00
Abubakar Abid
db162bfc59
enable lazy caching for chatinterface ( #10015 )
...
* lazy chat
* add changeset
* lazy caching
* lazy caching
* revert
* fix this
* changes
* changes
* format
* changes
* add env variable
* revert
* add changeset
* lazy
* fix
* chat interface
* fix test
---------
Co-authored-by: gradio-pr-bot <gradio-pr-bot@users.noreply.github.com>
2024-11-23 20:24:55 +00:00
Abubakar Abid
369a44e7f8
Add ability to provide preset response options in gr.Chatbot
/ gr.ChatInterface
( #9989 )
...
* options
* add changeset
* list
* types
* add changeset
* types
* docs
* changes
* more docs
* chatbot
* changes
* changes
* changes
* format
* notebooks
* typedict
* docs
* console logs
* docs
* docs
* styling
* docs
* Update guides/05_chatbots/01_creating-a-chatbot-fast.md
Co-authored-by: Hannah <hannahblair@users.noreply.github.com>
* Update guides/05_chatbots/01_creating-a-chatbot-fast.md
Co-authored-by: Hannah <hannahblair@users.noreply.github.com>
* Update guides/05_chatbots/01_creating-a-chatbot-fast.md
Co-authored-by: Hannah <hannahblair@users.noreply.github.com>
* Update guides/05_chatbots/01_creating-a-chatbot-fast.md
Co-authored-by: Hannah <hannahblair@users.noreply.github.com>
* Update guides/05_chatbots/02_chat_interface_examples.md
Co-authored-by: Hannah <hannahblair@users.noreply.github.com>
* Update guides/05_chatbots/01_creating-a-chatbot-fast.md
Co-authored-by: Hannah <hannahblair@users.noreply.github.com>
* restore
---------
Co-authored-by: gradio-pr-bot <gradio-pr-bot@users.noreply.github.com>
Co-authored-by: Hannah <hannahblair@users.noreply.github.com>
2024-11-22 00:19:52 +00:00
Abubakar Abid
74f22d57a1
Fix Starlette templating deprecation warning ( #10011 )
...
* fix deprc
* add changeset
---------
Co-authored-by: gradio-pr-bot <gradio-pr-bot@users.noreply.github.com>
2024-11-21 15:25:34 -08:00
郭文涛
4aa0e887a6
Add container parameter
to gr.HTML
component ( #10014 )
...
* add gr.datetime a param 'interactive:bool'
* update html with `container`
* delete irrelevant update
* add changeset
---------
Co-authored-by: Abubakar Abid <abubakar@huggingface.co>
Co-authored-by: gradio-pr-bot <gradio-pr-bot@users.noreply.github.com>
2024-11-21 19:54:19 +00:00
Hannah
e9f0d0315d
Ensure Enter is correctly handled in Safari and Firefox ( #9945 )
...
* explicity handle enter
* add changeset
* add handle keydown
* fix test
---------
Co-authored-by: gradio-pr-bot <gradio-pr-bot@users.noreply.github.com>
Co-authored-by: Abubakar Abid <abubakar@huggingface.co>
2024-11-21 17:33:23 +00:00
Rodrigo Ribeiro Gomes
f2fa27058a
Fix Node.js start in Windows ( #10001 )
...
* Update node_server.py
Fix node start error in Windows systems, due to file nomenclature.
Fix #9903
* add changeset
* format
---------
Co-authored-by: Abubakar Abid <abubakar@huggingface.co>
Co-authored-by: gradio-pr-bot <gradio-pr-bot@users.noreply.github.com>
2024-11-21 15:27:19 +00:00
Yuichiro Tachibana (Tsuchiya)
29cfc03ecf
Call run_extra_startup_events
in Lite ( #10000 )
...
* Call run_extra_startup_events in Lite
* add changeset
* add changeset
* add changeset
* Use asyncio.create_task() instead
---------
Co-authored-by: gradio-pr-bot <gradio-pr-bot@users.noreply.github.com>
2024-11-21 10:40:51 +09:00
Hannah
0879be78b3
Ensure show_label
param is used in HighlightedText ( #10004 )
...
* use show_label param
* add changeset
* add changeset
* * remove empty label spacing
* increase empty area
---------
Co-authored-by: gradio-pr-bot <gradio-pr-bot@users.noreply.github.com>
Co-authored-by: Abubakar Abid <abubakar@huggingface.co>
2024-11-20 23:34:40 +00:00
Abubakar Abid
c3324d7f7f
Fix issues related to examples and example caching in gr.ChatInterface
( #9990 )
...
* changes
* changes
* add functional tests
* add changeset
* revert
* example format
* chat interface
* replace attribute with str
* replace attribute with function
* fix tests
* changes
* fix
* more changes
* changes
* changes
* demo
* more changes
* typing
* demos
* test
* changes
* changes
* functional tests
* add changeset
* fix pytest
---------
Co-authored-by: gradio-pr-bot <gradio-pr-bot@users.noreply.github.com>
2024-11-20 12:57:59 -08:00
Abubakar Abid
e7629f7eac
Adds copy event to gr.Markdown
, gr.Chatbot
, and gr.Textbox
( #9979 )
...
* add copy event
* add changeset
* test
* demo
* changes
* add changeset
* add list format
* typing
* notebook
* copy events'
---------
Co-authored-by: gradio-pr-bot <gradio-pr-bot@users.noreply.github.com>
2024-11-19 19:58:19 +00:00
Hannah
2afcad80ab
Allow negative values in gr.Slider ( #9988 )
...
* remove fallback values in slider
* story
* add changeset
---------
Co-authored-by: gradio-pr-bot <gradio-pr-bot@users.noreply.github.com>
2024-11-19 15:24:18 +00:00
Alessandro Molina
2e2cdbfb60
Fix css preload when serving from proxied subpaths ( #9822 )
...
* Fix assets when serving from subpath
* add changeset
---------
Co-authored-by: gradio-pr-bot <gradio-pr-bot@users.noreply.github.com>
Co-authored-by: Abubakar Abid <abubakar@huggingface.co>
Co-authored-by: pngwn <hello@pngwn.io>
2024-11-16 08:54:49 -08:00
Gradio PR Bot
4d520a8a7b
chore: update versions ( #9908 )
...
Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
2024-11-15 16:16:39 -08:00
Hannah
08f4b8b000
Add allow_file_downloads
param to allow downloading image/video/audio media in chatbot ( #9905 )
...
* add allow_file_downloads param
* add download btn for markdown images
* add changeset
* tweak
* fix test
* remove param
* revert param removal
* fix show logic
* rename show_download_button to allow_file_downloads
* change default to True
---------
Co-authored-by: gradio-pr-bot <gradio-pr-bot@users.noreply.github.com>
Co-authored-by: Abubakar Abid <abubakar@huggingface.co>
2024-11-15 15:50:32 -08:00
Abubakar Abid
da6f191554
Remember token locally with gr.load()
( #9966 )
...
* localstate
* add changeset
* changes
* changes
* changes
* add changeset
* changes
* add changeset
* format
* notebook
* some changes
* add changeset
* format
* fix
* changes
* fix js lint and ts
* add changeset
* fix pytest
* component demo
* rename
* rename
* notebooks
* changes
* add changeset
* revert
* changes
* revert
* revert
* revert
* changes
* changes
* format
* fix
* notebook
* docstring
* guide
* types
* demo
* push
* cleanup
* demo
* add changeset
* notebook
* add changeset
* clean
* add changeset
---------
Co-authored-by: gradio-pr-bot <gradio-pr-bot@users.noreply.github.com>
2024-11-15 15:46:59 -08:00
Hannah
cfb62bfdb5
Allow dataframe column content to wrap ( #9949 )
...
* camend header-content css wrap
* add changeset
---------
Co-authored-by: gradio-pr-bot <gradio-pr-bot@users.noreply.github.com>
2024-11-15 13:08:38 -08:00
Abubakar Abid
fc06fe41f0
Add ability to read and write from LocalStorage ( #9950 )
...
* localstate
* add changeset
* changes
* changes
* changes
* add changeset
* changes
* add changeset
* format
* notebook
* some changes
* add changeset
* format
* fix
* changes
* fix js lint and ts
* add changeset
* fix pytest
* component demo
* rename
* rename
* notebooks
* revert
* changes
* revert
* revert
* revert
* changes
* changes
* format
* fix
* notebook
* docstring
* guide
* types
* cleanup
---------
Co-authored-by: gradio-pr-bot <gradio-pr-bot@users.noreply.github.com>
2024-11-15 12:56:36 -08:00
gianlucaelia
eae345e5fd
Allow settings custom headers in js client ( #9930 )
...
* Allow settings custom headers in js client
* add changeset
* get_jwt doesn't need additional headers
* format
---------
Co-authored-by: Abubakar Abid <abubakar@huggingface.co>
Co-authored-by: gradio-pr-bot <gradio-pr-bot@users.noreply.github.com>
Co-authored-by: Hannah <hannahblair@users.noreply.github.com>
2024-11-15 12:05:45 -08:00
Dawood Khan
75ad3e3419
SSR Safari Fix ( #9958 )
...
* fix
* add changeset
* fix
* fix
* fix
* update
* fix chrome
* move logic
* format
* fixes
---------
Co-authored-by: gradio-pr-bot <gradio-pr-bot@users.noreply.github.com>
2024-11-15 12:03:31 -05:00
Hannah
74b4ff0e61
Ensure radio radius is consistent with checkbox radius ( #9901 )
...
* ensure radio uses checkbox radius var
* add changeset
* amend checkbox group label radius
* add changeset
---------
Co-authored-by: gradio-pr-bot <gradio-pr-bot@users.noreply.github.com>
2024-11-15 12:33:59 +00:00
Benjamin Klieger
4e1f7dbcb2
Add new tutorial for automatic voice detection app ( #9934 )
2024-11-13 16:54:00 -04:00
Abubakar Abid
213b038e36
changes ( #9947 )
2024-11-13 08:56:57 -08:00
Abubakar Abid
a966e9f753
Hide upload button after upload when file_count="single"
( #9946 )
...
* format'
* add changeset
* add story
---------
Co-authored-by: gradio-pr-bot <gradio-pr-bot@users.noreply.github.com>
Co-authored-by: Hannah <hannahblair@users.noreply.github.com>
2024-11-12 14:39:57 -08:00
meg
ceb4005bb6
Fix random_demos.py issues ( #9927 )
...
- Removes assumption/requirement that the script is run specifically in the demo/ directory.
- Removes assumption/requirement that there are 3 unwanted large demos that should be removed. (Note: currently, the `.gradio/flagged` demo isn't there, so it will throw an error.)
2024-11-12 12:47:36 -08:00
meg
1555321f6f
Explain that PYTHONPATH must be updated ( #9925 )
...
* Explain that PYTHONPATH must be updated
Cloning this repository, then building & running scripts, can run into the issue of the `import gradio` call pulling `gradio` in from somewhere else (such as the virtual environment). To address this, users need to tell python where to look in order to use the cloned git repo for `gradio`.
Further details in https://huggingface.slack.com/archives/C02SPHC1KD1/p1731207233633159?thread_ts=1731206608.882719&cid=C02SPHC1KD1 for more
* tweaks
---------
Co-authored-by: Abubakar Abid <abubakar@huggingface.co>
2024-11-12 12:44:57 -08:00
Muhammad Yaseen
a70ba5e0f0
Clearer error message in Dropdown's and Radio's preprocess function ( #9921 )
...
* Clearer error message in Dropdown's and Radio's preprocess function
* add changeset
---------
Co-authored-by: gradio-pr-bot <gradio-pr-bot@users.noreply.github.com>
2024-11-11 19:44:31 +00:00
meg
66375acb5c
Fix typo in Exception raised by base.py ( #9933 )
...
* Fix typo in Exception raised by base.py
* add changeset
---------
Co-authored-by: gradio-pr-bot <gradio-pr-bot@users.noreply.github.com>
2024-11-11 11:15:08 +00:00
Hannah
c0cf80bddd
Allow datetime value to be null ( #9897 )
...
* change valid date check
* add changeset
* move clear event and dispatch clear
* remove clear event
---------
Co-authored-by: gradio-pr-bot <gradio-pr-bot@users.noreply.github.com>
2024-11-07 23:12:41 +00:00
TakaSoap
d81f430fd5
fix: Fix filename stripping to preserve extensions ( #9913 )
...
* fix: Fix filename stripping to preserve extensions
* fix tests
* add changeset
---------
Co-authored-by: Abubakar Abid <abubakar@huggingface.co>
Co-authored-by: gradio-pr-bot <gradio-pr-bot@users.noreply.github.com>
2024-11-07 14:52:20 -04:00
Hannah
f523c915d3
Ensure dropped files are validated in MultimediaTextbox ( #9904 )
...
* add logic to validate dropped files
* add changeset
* add changeset
---------
Co-authored-by: gradio-pr-bot <gradio-pr-bot@users.noreply.github.com>
2024-11-06 19:40:10 +00:00
Muhammad Yaseen
eafe22cd94
Clearer error message in CheckboxGroup's preprocess function ( #9906 )
...
* Clearer error message in CheckboxGroup's preprocess function
* add changeset
* lint
---------
Co-authored-by: gradio-pr-bot <gradio-pr-bot@users.noreply.github.com>
Co-authored-by: Abubakar Abid <abubakar@huggingface.co>
2024-11-05 19:49:32 -04:00
Gradio PR Bot
b5eaba1d6d
chore: update versions ( #9874 )
...
Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
2024-11-04 14:59:10 -08:00
Freddy Boulton
fa5d4339d6
Do not load code in gr.NO_RELOAD in the reload mode watch thread ( #9886 )
...
* add code
* add changeset
* no if __name__ reload twice
---------
Co-authored-by: gradio-pr-bot <gradio-pr-bot@users.noreply.github.com>
2024-11-04 13:50:52 -08:00
Yuichiro Tachibana (Tsuchiya)
b6725cf6c1
Lite auto-load imported modules with pyodide.loadPackagesFromImports
( #9726 )
...
* Call pyodide.loadPackagesFromImports() for each Python file and dispatch an event including the result
* Fix
* Call pyodide.loadPackagesFromImports from run_code
* Update DemosLite to listen the modules-auto-loaded event and upload the requirements automatically
* add changeset
* 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-11-04 13:50:27 -08:00
Freddy Boulton
e10bbd236f
Fix live interfaces for audio/image streaming ( #9883 )
...
* Fix live interfaces for audio/image streaming
* add changeset
* code
* code
---------
Co-authored-by: gradio-pr-bot <gradio-pr-bot@users.noreply.github.com>
Co-authored-by: Abubakar Abid <abubakar@huggingface.co>
2024-11-04 16:20:48 -05:00