WH-Yoshi
bad383645e
Adding hint list[list]
for example parameter ( #7966 )
...
* Adding hint list[list] for example parameter
* add changeset
---------
Co-authored-by: gradio-pr-bot <gradio-pr-bot@users.noreply.github.com>
2024-04-08 16:44:32 +00:00
Freddy Boulton
eae97c29ce
Fix task bug in python 3.9 ( #7961 )
2024-04-08 07:59:53 -07:00
Freddy Boulton
b78129d90f
Use asyncio.Event to stop stream in heartbeat route ( #7932 )
2024-04-05 11:57:49 -07:00
Alfiya
f2a1a859ae
Clarify the streaming response documentation ( #7924 )
...
* Clarify the streaming response documentation
You cannot simply yield one new token at a time, you have to yield the new full response.
* Clarify streaming chatbot instructions
* Clarify streaming chatbots
2024-04-05 11:54:39 -04:00
Abubakar Abid
8250a1a0df
Handle the case of multiple headers when constructing root url ( #7938 )
...
* handle the case of multiple headers
* lint
* add changeset
* Update gradio/route_utils.py
* add changeset
* lint
---------
Co-authored-by: gradio-pr-bot <gradio-pr-bot@users.noreply.github.com>
2024-04-05 02:35:12 +00:00
Abubakar Abid
919afffcee
Adds a Guide on deploying Gradio apps with Docker ( #7935 )
...
* finish guide
* more informative exception
* add changeset
* add dockerfile to prism languages
* add changeset
---------
Co-authored-by: gradio-pr-bot <gradio-pr-bot@users.noreply.github.com>
Co-authored-by: aliabd <ali.si3luwa@gmail.com>
2024-04-04 19:23:23 -07:00
aliabid94
b165193902
Restore Markdown formatting for Chatbots, MarkdownCode ( #7936 )
...
* changes
* add changeset
* changes
* add changeset
* changes
* changes
* changes
* changes
* add changeset
* chages
---------
Co-authored-by: Ali Abid <aliabid94@gmail.com>
Co-authored-by: gradio-pr-bot <gradio-pr-bot@users.noreply.github.com>
2024-04-04 15:04:46 -07:00
aliabid94
9666854790
Fixes streaming event race condition ( #7926 )
...
* changes
* add changeset
---------
Co-authored-by: Ali Abid <aliabid94@gmail.com>
Co-authored-by: gradio-pr-bot <gradio-pr-bot@users.noreply.github.com>
2024-04-04 12:39:44 -07:00
Ali Abdalla
b43055b297
Lite playground design changes ( #7811 )
...
* prevent new line on cmd+enter shortcut
* add copy button
* add download button
* better font sizing and align editor buttons
* button colors and header positioning
* add layout attribute
* height issue
* border fix
* overflow
* add changeset
* tests
* tweaks to index
* fix formatting in index.html
* fix event listener
* better alignment on header
* fix padding on code editor buttonsm
* add dark mode
* formatting
* fix heights issues
* add to guide
* shared worker and small fix
* Update guides/08_gradio-clients-and-lite/gradio-lite.md about SharedWorker mode (#7923 )
* layout edit in guide
---------
Co-authored-by: gradio-pr-bot <gradio-pr-bot@users.noreply.github.com>
Co-authored-by: Abubakar Abid <abubakar@huggingface.co>
Co-authored-by: Yuichiro Tachibana (Tsuchiya) <t.yic.yt@gmail.com>
2024-04-04 04:38:12 -07:00
Freddy Boulton
a4782f7a09
Allow displaying gr.Code examples by their filename if value is a tuple ( #7912 )
...
* Add code
* add changeset
* add changeset
* Only display filename
---------
Co-authored-by: gradio-pr-bot <gradio-pr-bot@users.noreply.github.com>
2024-04-04 00:38:55 +00:00
Bocheng Zou
867ff16cd4
Trigger the "clear" event of Image Editor ( #7817 )
2024-04-03 23:45:59 +01:00
Abubakar Abid
2bae1cfbd4
Adds an "API Recorder" to the view API page, some internal methods have been made async ( #7850 )
...
* changes
* code recorder
* api docs
* add changeset
* changes
* change
* add changeset
* add changeset
* changes
* fixes
* format
* changes
* fix
* add changeset
* rename
* api recorder
* docs
* changes for pr
* fix
* async-ify
* add changeset
* fix typing
* fixes
* fix test/test_blocks
* fix more tests
* fix test
* add changeset
* fix more tests
* add async version
* make 2 separate functions
* format
* fix
* format
* fix tests
* move resource
* changes
* fix cache
* lite fixes
* make lazy cache async
* fix
* fix
* flaky
* replace null with None
* fixes
---------
Co-authored-by: gradio-pr-bot <gradio-pr-bot@users.noreply.github.com>
2024-04-03 14:28:06 -07:00
Freddy Boulton
efd9524508
Fix gr.CheckboxGroup change event ( #7915 )
2024-04-03 07:19:58 -07:00
Shubham raj
b729f10321
Bugfix: Fix color and size keys in theme builder app ( #7756 )
...
* Bugfix: Update color and size keys in theme builder app
* add changeset
* add changeset
* changes
* changes
---------
Co-authored-by: gradio-pr-bot <gradio-pr-bot@users.noreply.github.com>
Co-authored-by: aliabid94 <aabid94@gmail.com>
Co-authored-by: Ali Abid <aliabid94@gmail.com>
2024-04-02 21:09:05 +00:00
pngwn
bbdbd28453
chore: update versions ( #7871 )
...
Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
2024-04-02 13:33:48 -04:00
Yuichiro Tachibana (Tsuchiya)
173c966866
Restore kitchen_sink test in the Lite E2E ( #7904 )
2024-04-02 23:43:59 +09:00
Freddy Boulton
6a4bf7abe2
Delete user state when they close the tab. Add an unload event for the demo and a delete_callback on gr.State to let developers control how resources are cleaned up ( #7829 )
...
* Delete state
* add changeset
* Delete state
* WIP
* Add load event
* Working ttl
* unload e2e test
* Clean up
* add changeset
* Fix notebook
* add changeset
* Connect to heartbeat in python client
* 15 second heartbeat
* Demo for unload
* Add notebook
* add changeset
* Fix docs
* revert demo changes
* Add docstrings
* lint 🙄
* Edit
* handle shutdown issue
* state comments
* client test
* Fix:
* Fix e2e test
* 3.11 incompatibility
* delete after one hour
* lint + highlight
* Update .changeset/better-tires-shave.md
Co-authored-by: Abubakar Abid <abubakar@huggingface.co>
* Update .changeset/better-tires-shave.md
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-04-01 18:31:56 -04:00
Ikko Eltociear Ashimine
83010a290a
fix typo in ci.md ( #7894 )
...
programatically -> programmatically
2024-04-01 11:08:56 -04:00
aliabid94
5e66e01abc
Fix audio streaming out ( #7881 )
...
* changes
* add changeset
* changes
* changes
* changes
* changes
* changes
* changes
---------
Co-authored-by: Ali Abid <aliabid94@gmail.com>
Co-authored-by: gradio-pr-bot <gradio-pr-bot@users.noreply.github.com>
2024-04-01 02:25:16 -07:00
Abubakar Abid
024b44c553
Add support for lazy caching of examples, as well as add GRADIO_CACHE_EXAMPLES
env variable ( #7863 )
...
* lazy cache
* lazy cache
* add changeset
* changes
* changes
* helpers
* revert
* changes
* changes
* bash scriipt
* internal
* changes
* check
* setup
* fix
* lint
* add changeset
* revert
* fix
* fix test
* add changeset
* partial fix
* flaky
* lint
* change test
* add changeset
* change default behavior, add env
* set env correctly
* fixes
* format
* don't block event loop
* changes:
* get space
* add to chat interface
* add flag for deferring caching
* fixes
* lazy sync
* format
* added support in chat_interface
* add documentation
* fix test
* add test
---------
Co-authored-by: gradio-pr-bot <gradio-pr-bot@users.noreply.github.com>
2024-03-29 23:14:33 +00:00
Srilekha P
ceabe503dc
Adding hover to shadow-alternate on the cards on the website ( #7891 )
...
* Adding Hover to shadow-alternate
* style
---------
Co-authored-by: Abubakar Abid <abubakar@huggingface.co>
2024-03-29 16:14:20 -07:00
Freddy Boulton
f42d3e29c7
Make internal event handlers of gr.Interface and gr.ChatInterface async ( #7893 )
...
* Make async
* add changeset
---------
Co-authored-by: gradio-pr-bot <gradio-pr-bot@users.noreply.github.com>
2024-03-29 14:35:21 -07:00
Nicolas Oliver
c7933ffedb
Suppress printing "Running on local URL:" when quiet is set ( #7892 )
...
* Update blocks.py
Suppress printing "Running on local URL:" when quiet is set
* add changeset
* add changeset
---------
Co-authored-by: gradio-pr-bot <gradio-pr-bot@users.noreply.github.com>
2024-03-29 20:23:14 +00:00
Dawood Khan
6a6db36466
Paste Images into MultimodalTextbox ( #7872 )
...
* submit button icon
* loader
* add changeset
* pr fix
* paste
* format
* 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-03-29 18:09:09 +00:00
Michael
ccdab9b7e7
logout route deleting cookie fix ( #7886 )
...
* logout button now deletes cookies by calling RedirectResponse before deleting cookies
* add changeset
* response
---------
Co-authored-by: gradio-pr-bot <gradio-pr-bot@users.noreply.github.com>
Co-authored-by: Abubakar Abid <abubakar@huggingface.co>
2024-03-29 18:07:29 +00:00
Freddy Boulton
946487cf8e
Cache view_api info in server and python client ( #7888 )
...
* Cache view_api info
* add changeset
---------
Co-authored-by: gradio-pr-bot <gradio-pr-bot@users.noreply.github.com>
2024-03-29 13:17:42 -04:00
aliabid94
7bbc3b62bf
JS functions break entire app if there's no input, fixed ( #7865 )
...
* changes
* add changeset
* add changeset
* changes
* changes
* changes
---------
Co-authored-by: Ali Abid <aliabid94@gmail.com>
Co-authored-by: gradio-pr-bot <gradio-pr-bot@users.noreply.github.com>
2024-03-28 14:54:46 -07:00
Abubakar Abid
e6d051dc8a
Fix how files are processed in gr.ChatInterface
( #7875 )
...
* submit button icon
* loader
* add changeset
* pr fix
* paste
* format
* add changeset
* remove path
* revert
* reset cset
* add changeset
* add changeset
* guide
* guide
* fix
---------
Co-authored-by: Dawood <dawoodkhan82@gmail.com>
Co-authored-by: gradio-pr-bot <gradio-pr-bot@users.noreply.github.com>
2024-03-28 10:12:02 -07:00
Abubakar Abid
b9dbcf7aa2
Make buttons in gr.ChatInterface
more mobile-friendly ( #7869 )
...
* make buttons in chat interface more mobile friendly
* add changeset
* add changeset
* lint
---------
Co-authored-by: gradio-pr-bot <gradio-pr-bot@users.noreply.github.com>
2024-03-27 23:41:03 -07:00
pngwn
d95a1a44d6
chore: update versions ( #7826 )
...
Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
2024-03-27 14:25:36 -07:00
Abubakar Abid
0e125d7bef
Trigger click event from gr.DownloadButton
even when no file is present ( #7862 )
...
* trigger click event download button
* add changeset
---------
Co-authored-by: gradio-pr-bot <gradio-pr-bot@users.noreply.github.com>
2024-03-27 20:16:01 +00:00
aliabid94
425fd1ca9d
Benchmark fix test ( #7810 )
...
* changes
* changes
* changes
* chnages
* changes
* add changeset
* changes
* changes
* add changeset
* chnages
* changes
* changes
---------
Co-authored-by: Ali Abid <aliabid94@gmail.com>
Co-authored-by: gradio-pr-bot <gradio-pr-bot@users.noreply.github.com>
2024-03-27 13:03:47 -07:00
Dawood Khan
8d7b3caebd
Multimodal Textbox Loading + other fixes ( #7848 )
...
* submit button icon
* loader
* add changeset
* pr fix
---------
Co-authored-by: gradio-pr-bot <gradio-pr-bot@users.noreply.github.com>
Co-authored-by: Abubakar Abid <abubakar@huggingface.co>
2024-03-27 12:31:58 -07:00
Yuichiro Tachibana (Tsuchiya)
e3b12369b7
Lazy-import pandas ( #7851 )
...
* Lazy-import pandas
* add changeset
* add changeset
---------
Co-authored-by: gradio-pr-bot <gradio-pr-bot@users.noreply.github.com>
2024-03-27 12:13:48 -07:00
Abubakar Abid
7af3cd7ccb
Adds a placeholder
argument to gr.Chatbot
( #7849 )
...
* add placeholder
* add changeset
* add test
* format
* lint
* chatbot
---------
Co-authored-by: gradio-pr-bot <gradio-pr-bot@users.noreply.github.com>
2024-03-27 12:13:17 -07:00
Freddy Boulton
ee804b2d56
Stop running iterators when js client disconnects ( #7835 )
...
* Add code
* add changeset
* move
* add changeset
* Add code
* Format notebook
* Address comments
---------
Co-authored-by: gradio-pr-bot <gradio-pr-bot@users.noreply.github.com>
2024-03-27 17:41:40 +00:00
Yuichiro Tachibana (Tsuchiya)
72661e3391
Revert the minify setting in vite.config.js which was mistakingly introduced in #6261 ( #7852 )
...
* Revert the minify setting in vite.config.js which was mistakingly introduced in #6261
* add changeset
---------
Co-authored-by: gradio-pr-bot <gradio-pr-bot@users.noreply.github.com>
2024-03-27 19:03:25 +09:00
Yuichiro Tachibana (Tsuchiya)
ecf5c524c2
Fix gradio/components/dataframe.py not to import pandas.io
( #7840 )
...
* Fix gradio/components/dataframe.py not to import `pandas.io`
* add changeset
* add changeset
* Fix
---------
Co-authored-by: gradio-pr-bot <gradio-pr-bot@users.noreply.github.com>
2024-03-27 10:39:57 +09:00
Abubakar Abid
75a2bf745d
Add guide on Client state and and fix default values of components ( #7830 )
...
* add guide and default values
* add changeset
* reset session
* fix
* add changeset
* fix tests'
* Update guides/08_gradio-clients-and-lite/01_getting-started-with-the-python-client.md
Co-authored-by: Ali Abdalla <ali.si3luwa@gmail.com>
---------
Co-authored-by: gradio-pr-bot <gradio-pr-bot@users.noreply.github.com>
Co-authored-by: Ali Abdalla <ali.si3luwa@gmail.com>
2024-03-26 21:10:43 +00:00
Abubakar Abid
05db0c4a59
Refactor CORS Middleware to be much faster ( #7801 )
...
* changes
* add changeset
* log
* add changeset
* changes
* changes
* lint
* middlware
* lint
* lint
* s
implified docstring
* fix
* revert test change
* docstring
* remove print
* update
---------
Co-authored-by: gradio-pr-bot <gradio-pr-bot@users.noreply.github.com>
2024-03-26 13:17:38 -07:00
Abubakar Abid
8b099a07a5
Additional documentation related to nginx and root_url
( #7832 )
...
* nginx docs
* Update guides/09_other-tutorials/running-gradio-on-your-web-server-with-nginx.md
Co-authored-by: Ali Abdalla <ali.si3luwa@gmail.com>
---------
Co-authored-by: Ali Abdalla <ali.si3luwa@gmail.com>
2024-03-26 18:49:24 +00:00
Yuichiro Tachibana (Tsuchiya)
1a7c8d3223
Stop importing gradio.ipython_ext in Wasm mode ( #7818 )
...
* Stop importing gradio.ipython_ext in Wasm mode
* add changeset
---------
Co-authored-by: gradio-pr-bot <gradio-pr-bot@users.noreply.github.com>
2024-03-26 16:43:30 +09:00
renovate[bot]
f18a33a1cc
Update dependency globals to v15 ( #7837 )
...
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2024-03-25 23:28:15 -07:00
renovate[bot]
e5c3cc9620
Update dependency katex to v0.16.10 [SECURITY] ( #7828 )
...
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2024-03-25 13:05:40 -07:00
aliabid94
61cb4fd711
Benchmarking scripts for load tests ( #7670 )
...
* changes
* changes
* changes
* changes
* changes
* changes
---------
Co-authored-by: Ali Abid <aliabid94@gmail.com>
Co-authored-by: Ubuntu <ubuntu@ip-172-31-17-237.us-west-2.compute.internal>
2024-03-25 12:30:57 -07:00
Shubham raj
1c257f5ebc
Bugfix: ..
in filename throwing error while loading in output. ( #7795 )
...
* Exclude filename while preventing path traversal
* add changeset
* add changeset
* Check if path1 is a file and use path1
parent to compare
* explicit
---------
Co-authored-by: gradio-pr-bot <gradio-pr-bot@users.noreply.github.com>
Co-authored-by: Freddy Boulton <alfonsoboulton@gmail.com>
Co-authored-by: Abubakar Abid <abubakar@huggingface.co>
2024-03-25 19:27:42 +00:00
Yuichiro Tachibana (Tsuchiya)
e0a8b7fa2c
Exclude typer
from the requirements list for Wasm env and fix gradio.cli
not to be imported ( #7823 )
...
* Exclude `typer` from the requirements list for Wasm env and fix `gradio.cli` not to be imported
* 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-03-25 12:21:19 -07:00
pngwn
bf5110a26b
chore: update versions ( #7771 )
...
Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
2024-03-25 12:35:44 -04:00
Dmytro Drach
f7df92f3f3
Improve UX of non-interactive slider ( #7814 )
...
* Fix disabled slider appearance
* add changeset
* tweaks
* add changeset
---------
Co-authored-by: gradio-pr-bot <gradio-pr-bot@users.noreply.github.com>
Co-authored-by: pngwn <hello@pngwn.io>
2024-03-25 15:10:10 +00:00
Yuichiro Tachibana (Tsuchiya)
ff6bf3ec8f
Remove the aiohttp mock from the Wasm worker as it's removed in https://github.com/gradio-app/gradio/pull/5244 ( #7789 )
...
* Remove the aiohttp mock from the Wasm worker as it's removed in https://github.com/gradio-app/gradio/pull/5244
* add changeset
* add changeset
---------
Co-authored-by: gradio-pr-bot <gradio-pr-bot@users.noreply.github.com>
2024-03-23 23:29:49 +09:00