Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

5.0 dev -> main #8843

Merged
merged 248 commits into from
Oct 9, 2024
Merged
Show file tree
Hide file tree
Changes from 8 commits
Commits
Show all changes
248 commits
Select commit Hold shift + click to select a range
748f6c1
enter pre-release mode
pngwn Jul 18, 2024
6e6818c
Remove deprecated parameters and classes for the 5.0 release (#8797)
abidlabs Jul 18, 2024
58a5ead
fix (#8830)
pngwn Jul 18, 2024
a7bc58f
fix
pngwn Jul 18, 2024
e7876b4
Merge branch 'main' into 5.0-dev
pngwn Jul 18, 2024
2c846af
Merge branch 'main' into 5.0-dev
abidlabs Jul 19, 2024
21f1b89
Merge branch 'main' into 5.0-dev
abidlabs Jul 19, 2024
4cf8af9
Prevent invalid values from being submitted to dropdown, etc. (#8810)
abidlabs Jul 19, 2024
c01dbac
Merge branch 'main' into 5.0-dev
abidlabs Jul 20, 2024
97eae27
merge
abidlabs Jul 20, 2024
5b4a7a1
Merge branch 'main' into 5.0-dev
abidlabs Jul 21, 2024
cc6fbed
Merge branch 'main' into 5.0-dev
abidlabs Jul 23, 2024
dfc006e
fixes
abidlabs Jul 23, 2024
3adbe44
Merge branch 'main' into 5.0-dev
freddyaboulton Jul 25, 2024
a19a803
Merge branch 'main' into 5.0-dev
freddyaboulton Jul 29, 2024
3408dba
Remove manual ip address check and launch counter (#8884)
abidlabs Jul 29, 2024
e017706
Remove deprecated documentation (#8940)
aliabd Jul 30, 2024
03cac10
merge main
freddyaboulton Jul 31, 2024
574f507
Merge branch 'main' into 5.0-dev
abidlabs Jul 31, 2024
51b7a8b
Use HTTP Livestreaming for audio/video streaming out (#8906)
freddyaboulton Jul 31, 2024
a0aac66
Adds `strict_cors` parameter to `launch()` (#8959)
abidlabs Aug 1, 2024
4b86544
Merge main
freddyaboulton Aug 2, 2024
315bb83
Fi
freddyaboulton Aug 2, 2024
1a8bbae
Merge branch 'main' into 5.0-dev
freddyaboulton Aug 5, 2024
8805fc4
Streaming out tweaks (#8976)
freddyaboulton Aug 5, 2024
fe9d1cb
Improve url downloads for file objects (#8978)
aliabid94 Aug 6, 2024
382a561
Merge branch 'main' into 5.0-dev
freddyaboulton Aug 6, 2024
7ad19b2
merge main (#9050)
freddyaboulton Aug 7, 2024
ea38421
merge main
freddyaboulton Aug 7, 2024
e508dd6
Merge branch 'main' into 5.0-dev
abidlabs Aug 7, 2024
86fadff
Merge branch 'main' into 5.0-dev
abidlabs Aug 8, 2024
47182c1
Merge branch 'main' into 5.0-dev
abidlabs Aug 10, 2024
8b2308b
lint
freddyaboulton Aug 7, 2024
8297e17
Merge branch 'main' into 5.0-dev
abidlabs Aug 12, 2024
370e01a
Have gr.on set value at start as well (#9065)
aliabid94 Aug 12, 2024
f9f84bf
No token passed by default in `gr.load()` (#9069)
abidlabs Aug 12, 2024
db6b306
changes
Aug 12, 2024
0d8a358
Set default `format` in `gr.Audio` to be `None` to avoid unnecessary …
abidlabs Aug 13, 2024
a6b4ff1
Merge branch 'main' into 5.0-dev
pngwn Aug 13, 2024
f84116b
Merge branch 'main' into 5.0-dev
pngwn Aug 14, 2024
e6f11e6
Merge branch 'main' into 5.0-dev
pngwn Aug 14, 2024
97a7bf6
Streaming inputs for 5.0 (#8941)
freddyaboulton Aug 14, 2024
433cc04
Merge branch 'main' into 5.0-dev
pngwn Aug 15, 2024
3dbb412
Merge branch 'main' into 5.0-dev
abidlabs Aug 15, 2024
4bc495c
3.10 (#9133)
abidlabs Aug 16, 2024
5cedf16
Deprecate passing a tuple for gr.Code value (#9132)
freddyaboulton Aug 19, 2024
2672ea2
Postprocess hardening (#9122)
freddyaboulton Aug 19, 2024
c054ec8
Drop python 3.8 and 3.9 (#9140)
abidlabs Aug 19, 2024
864cd0f
Raise WasmUnsupportedError for ffmpeg usage on Lite (#9130)
whitphx Aug 20, 2024
f3652eb
Video gallery (#9052)
dawoodkhan82 Aug 20, 2024
3d7a9b8
Open audio/image input stream only when queue is ready (#9149)
freddyaboulton Aug 20, 2024
48ae28e
merge main
freddyaboulton Aug 20, 2024
72ffe0d
trigger ci
freddyaboulton Aug 20, 2024
31735da
Merge branch 'main' into 5.0-dev
abidlabs Aug 21, 2024
e675064
Merge branch 'main' into 5.0-dev
pngwn Aug 22, 2024
b038c93
Merge branch 'main' into 5.0-dev
pngwn Aug 22, 2024
4d9f665
update (#9176)
freddyaboulton Aug 22, 2024
8deeeb6
File access security guide (#9156)
freddyaboulton Aug 22, 2024
74aff6f
Merge branch 'main' into 5.0-dev
pngwn Aug 22, 2024
213211d
fix guide
freddyaboulton Aug 26, 2024
21f117d
Fix notebook (#9181)
freddyaboulton Aug 27, 2024
80c966a
DNS resolver on ip check (#9150)
aliabid94 Aug 27, 2024
69bf6ff
Merge branch 'main' into 5.0-dev
abidlabs Aug 27, 2024
74e9da3
Merge branch 'main' into 5.0-dev
abidlabs Aug 27, 2024
e6d456a
Change dark mode color theme from `gray` to `zinc` (#9175)
hannahblair Aug 28, 2024
66349fe
Streaming Guides (#9173)
freddyaboulton Aug 28, 2024
173f5b4
Fix (#9215)
freddyaboulton Aug 29, 2024
20c0836
Deprecate type='tuples for chatbot and focus chatbot docs on 'message…
freddyaboulton Aug 29, 2024
ab4580b
Remove grey background behind all components (#9213)
hannahblair Aug 29, 2024
9f4c3ee
changes
abidlabs Aug 29, 2024
9e2ae43
changes
abidlabs Aug 29, 2024
bc17479
Revert "changes"
abidlabs Aug 29, 2024
272b05c
Revert "changes"
abidlabs Aug 29, 2024
493df38
Merge branch 'main' into 5.0-dev
abidlabs Aug 29, 2024
6773c4d
Redesign `gr.Slider()` (#9197)
hannahblair Aug 29, 2024
3c73f00
🔡 Update default core Gradio font (#9204)
hannahblair Aug 29, 2024
e9e737e
Redesign `gr.Button()` (#9167)
hannahblair Aug 30, 2024
8a75559
Minor changes to flagging for 5.0 (#9166)
abidlabs Aug 30, 2024
4a832f4
Adds TLS to FRP tunnel (#9218)
abidlabs Aug 30, 2024
5492e74
Move buttons from chat_interface into Chatbot (#9201)
freddyaboulton Aug 31, 2024
227c5b9
Merge branch 'main' into 5.0-dev
abidlabs Aug 31, 2024
dd8e2e3
Improve button consistency across light/dark mode (#9236)
hannahblair Sep 1, 2024
3175c7a
Redesign `gr.Tabs()` (#9199)
hannahblair Sep 1, 2024
e137b30
Decrease component radii and remove input shadows (#9216)
hannahblair Sep 1, 2024
8bb3d34
fix py chatbot test
hannahblair Sep 2, 2024
c8cfe93
Lighten secondary button grey fill (#9245)
hannahblair Sep 2, 2024
38cf712
Stop using `multiprocessing` in `flagging.CSVLogger` on Lite v5 (#9246)
whitphx Sep 2, 2024
2e179d3
prefix api routes (#9200)
pngwn Sep 2, 2024
f8b411f
Built-in submit and stop buttons in `gr.ChatInterface(multimodal=Fals…
whitphx Sep 3, 2024
03f3735
Adds a "huggingface" button variant, and makes it the default for `gr…
abidlabs Sep 3, 2024
4db3162
chore: update versions (beta) (#8829)
pngwn Sep 4, 2024
f90dada
fix cs
pngwn Sep 4, 2024
7a36e3f
chore: update versions (beta) (#9262)
gradio-pr-bot Sep 4, 2024
350b0a5
Improve Icon Button consistency (#9250)
hannahblair Sep 4, 2024
950055e
Merge branch 'main' into 5.0-dev
abidlabs Sep 4, 2024
3b41452
format
hannahblair Sep 4, 2024
fe06141
Merge branch '5.0-dev' of github.com:gradio-app/gradio into 5.0-dev
hannahblair Sep 4, 2024
e05f568
Fix reload mode and streaming in 5.0 dev (#9269)
freddyaboulton Sep 5, 2024
c469d40
Raise error instead of warning if checksums for binary do not match (…
abidlabs Sep 5, 2024
6f5c411
Merge branch 'main' into 5.0-dev
abidlabs Sep 6, 2024
b0b8500
Fix stop recording button colors (#9270)
freddyaboulton Sep 6, 2024
7122420
Match style of textbox stop button to submit button (#9280)
freddyaboulton Sep 6, 2024
6309a48
Raise ChecksumMismatchError (#9300)
abidlabs Sep 9, 2024
54ea485
Further tweak to is_in_or_equal (#9282)
freddyaboulton Sep 10, 2024
af4f70a
changes (#9301)
abidlabs Sep 10, 2024
f3f0fef
Fixes race condition in `update_root_in_config` (#9306)
abidlabs Sep 10, 2024
d31fa59
docstring
abidlabs Sep 11, 2024
99648ec
Adds ability to block event trigger when file is uploading (#9253)
dawoodkhan82 Sep 11, 2024
8e78da9
5.0 merge (#9318)
pngwn Sep 11, 2024
7c0780b
Proposal: remove `gr.make_waveform` and remove `matplotlib` as a depe…
abidlabs Sep 11, 2024
34f46b0
Dont move files to cache automatically in chatbot postprocess (#9303)
freddyaboulton Sep 11, 2024
81a356d
Remove two dependencies: `importlib_resources` and `urllib3` (if not …
abidlabs Sep 11, 2024
299879d
Make `gr.Image` preprocessing more efficient (#9314)
abidlabs Sep 12, 2024
7afb9a1
5.0 merge take 2 (#9326)
pngwn Sep 12, 2024
fcdac9d
Add `matplotlib` requirements to several demos (#9327)
abidlabs Sep 12, 2024
157a2a7
Merge branch 'main' into 5.0-dev
pngwn Sep 12, 2024
f813154
clean
pngwn Sep 12, 2024
202c180
format
pngwn Sep 12, 2024
1fef9d9
Standardize `height` across components and add `max_height` and `min_…
abidlabs Sep 12, 2024
19f6b31
Fix typo in `tunneling.py` (#9338)
abidlabs Sep 12, 2024
6a7f631
Set the color of placeholder in a disabled textbox to gray instead of…
abidlabs Sep 12, 2024
02369b3
Improve is_in_or_equal and fuzzer (#9341)
freddyaboulton Sep 12, 2024
322ac54
Add info about Powershell client (#9343)
abidlabs Sep 12, 2024
b543465
Remove lite/theme.css from the Git-managed file tree (#9335)
whitphx Sep 13, 2024
4338f29
9227 chatinterface retry bug (#9316)
freddyaboulton Sep 13, 2024
73647a0
Move icons into `IconButtonWrapper` (#9261)
hannahblair Sep 13, 2024
960743c
Added gradio-in-r (#9340)
Ifeanyi55 Sep 13, 2024
5b86e2f
Enhance Lite E2E tests and fix a networking problem on Lite (#9333)
whitphx Sep 13, 2024
61f794b
Do not attach `content_disposition_type = "attachment"` headers for f…
abidlabs Sep 13, 2024
d47dd1f
Fix overflowing markdown in Chatbot (#9260)
hannahblair Sep 13, 2024
50c3a7f
Small tweak to how thoughts are shown in `gr.Chatbot` (#9359)
abidlabs Sep 16, 2024
1daf259
Use `container` param in `gr.Markdown` (#9356)
hannahblair Sep 16, 2024
eb90dd9
Merge branch 'main' into 5.0-dev
pngwn Sep 17, 2024
91f00de
Merge branch 'main' into 5.0-dev
aliabd Sep 17, 2024
5b079c7
Merge branch 'main' into 5.0-dev
aliabd Sep 17, 2024
55bf0f3
Merge branch 'main' into 5.0-dev
aliabd Sep 17, 2024
535a5cf
run format
hannahblair Sep 17, 2024
d1aa185
Merge branch 'main' into 5.0-dev
aliabd Sep 18, 2024
9e70832
Fixes website build in 5.0-dev (#9382)
aliabd Sep 18, 2024
16c0485
Small tweaks to improve the DX for the "tuples"/"messages" argument i…
abidlabs Sep 18, 2024
618e9fe
Update babylon.js to `v7` for `gr.Model3D` (#9377)
abidlabs Sep 18, 2024
7bf3e99
Fix `gr.ImageEditor` toolbar cutoff (#9371)
hannahblair Sep 18, 2024
6af5506
Merge branch 'main' into 5.0-dev
aliabd Sep 18, 2024
6e5b8fb
Merge branch 'main' into 5.0-dev
aliabd Sep 18, 2024
83d6189
Merge branch 'main' into 5.0-dev
aliabd Sep 18, 2024
9a85ccc
Adds LLM to the Playground (#9233)
aliabd Sep 19, 2024
5eb860f
Refactor lazy caching (#9361)
abidlabs Sep 19, 2024
3b580ce
Merge branch 'main' into 5.0-dev
abidlabs Sep 19, 2024
c4afdcd
Added max lines and overflow scrollbar for `gr.Code` (#9311)
micpst Sep 19, 2024
53ed0f0
Fix File Types for MultimodalTextbox (#9393)
dawoodkhan82 Sep 19, 2024
3ad28c7
Prevent HTML and Markdown height changing when status is hidden (#9363)
hannahblair Sep 19, 2024
736046f
Object Detection From Webcam Stream Guide (#9336)
freddyaboulton Sep 19, 2024
4be0933
Fix gradio.js aws path (#9397)
aliabd Sep 19, 2024
aa35b07
Trigger state change event on iterators (#9299)
freddyaboulton Sep 19, 2024
1c94328
add local fonts and update themes (#9367)
hannahblair Sep 19, 2024
06babda
Disable liking user message in chatbot by default but make it configu…
freddyaboulton Sep 19, 2024
6443062
Fix Cached Examples for Streamed Media (#9373)
freddyaboulton Sep 20, 2024
060acb3
Fixes annoying height bug in playground (#9402)
aliabd Sep 20, 2024
8e52b6a
Chatbot Examples (#8966)
dawoodkhan82 Sep 20, 2024
4c8c6f2
Ssr part 2 (#9339)
pngwn Sep 23, 2024
7ab0af9
chore: update versions (beta) (#9263)
gradio-pr-bot Sep 23, 2024
bf27ff4
Center icon in button when no text is present (#9405)
abidlabs Sep 23, 2024
c2c2fd9
fix SSR apps on spaces (#9412)
pngwn Sep 23, 2024
d92c26f
Small fixes to `gr.Dataframe` and chatbot docs (#9376)
abidlabs Sep 23, 2024
82e7652
chore: update versions (beta) (#9416)
gradio-pr-bot Sep 23, 2024
74f3b9d
Allow skipping an arbitrary number of output components, and also rai…
abidlabs Sep 24, 2024
b672deb
fix css (#9427)
pngwn Sep 24, 2024
278645b
Fix Python unit tests on `5.0-dev` branch (#9432)
abidlabs Sep 25, 2024
a16787a
Lite: HTTPX client improvement (#9413)
whitphx Sep 25, 2024
e7a415b
Use or `pathlib.Path` objects to indicate filepaths for `css`, `js`, …
abidlabs Sep 26, 2024
afbd8e7
Reduce analytics that are collected (#9447)
abidlabs Sep 26, 2024
0c8fafb
Fix SSR mode flag with `mount_gradio_app` and revert changes to pytes…
abidlabs Sep 26, 2024
8f469e1
Small changes to caching (#9438)
abidlabs Sep 26, 2024
4e54105
Refactoring playground (#9426)
whitphx Sep 26, 2024
56dbf77
Chatbot bug fixes (#9453)
dawoodkhan82 Sep 27, 2024
4d75f02
Update object detection guide (#9456)
freddyaboulton Sep 27, 2024
018c140
Start/stop recoding from the backend. Add guide on conversational cha…
freddyaboulton Sep 27, 2024
b622b1f
Improve UI on the Playground (#9462)
aliabd Sep 28, 2024
f7c3396
Fix. Triggered dataframe change event for header change (#9469)
Joodith Sep 29, 2024
3d93464
chore: update versions (beta) (#9420)
gradio-pr-bot Sep 29, 2024
7fc5e26
format
abidlabs Sep 30, 2024
36d6636
Fix package.json `exports` of @gradio/preview (#9468)
Col0ring Sep 30, 2024
3ac5d9c
Fix plots (#9464)
pngwn Sep 30, 2024
30d13ac
Pre/post-processing download requests (#9383)
aliabid94 Sep 30, 2024
b406139
Add support for 3rd party providers to `gr.load`, and provide a bette…
abidlabs Sep 30, 2024
2304217
chore: update versions (beta) (#9476)
gradio-pr-bot Sep 30, 2024
2510a6e
Fix `slider-color` var (#9481)
hannahblair Sep 30, 2024
7352a89
Playground requirements tab (#9460)
whitphx Oct 1, 2024
d958bfa
Fix prettierignore (#9486)
whitphx Oct 1, 2024
c307a0c
Minor fixes to docs and a demo (#9493)
abidlabs Oct 1, 2024
7065e11
Check for `file_types` parameter in the backend (#9431)
dawoodkhan82 Oct 1, 2024
a17c7b6
Ensure media queries work for SSR mode (#9428)
pngwn Oct 1, 2024
488ef76
Fix custom component CLI unit tests (#9495)
freddyaboulton Oct 1, 2024
4e6a47f
Fixes: Chatbot examples for custom chatbot + rename `suggestions` -> …
dawoodkhan82 Oct 2, 2024
1647ebd
UI theme fixes (#9496)
aliabid94 Oct 2, 2024
d054262
Centre components within `Block` when height and width are set (#9504)
hannahblair Oct 2, 2024
991883e
Improve `gr.Code` (#9450)
hannahblair Oct 2, 2024
861f5e9
Fix node process to run with correct server name (#9506)
abidlabs Oct 2, 2024
3999afa
Merge branch 'main' into 5.0-dev
abidlabs Oct 2, 2024
c46fe20
yaml lint
abidlabs Oct 2, 2024
f8de5d2
Add Bokeh plot demo (#9423)
whitphx Oct 3, 2024
3ec8e63
Expanding AI Playground Prompt for Qwen (#9452)
aliabd Oct 3, 2024
5c93a2d
Merge branch 'main' into 5.0-dev
abidlabs Oct 3, 2024
ec64dc9
docs: update 01_quickstart.md (#9515)
eltociear Oct 3, 2024
0ab6ac5
Fix change triggers for dropdown and radio (#9519)
dawoodkhan82 Oct 3, 2024
a369712
Merge branch 'main' into 5.0-dev
abidlabs Oct 4, 2024
84f4906
chore: update versions (beta) (#9485)
gradio-pr-bot Oct 5, 2024
f60bb68
Fix single select dropdown (#9526)
whitphx Oct 5, 2024
d826faa
Hide x axis labels (#9497)
aliabid94 Oct 5, 2024
098a009
Add Jinja2 language to Code component (#9545)
CISC Oct 5, 2024
8bcbd3f
Merge branch 'main' into 5.0-dev
abidlabs Oct 5, 2024
b82aa6f
Disable sagemaker_check() for now (#9546)
vmatt Oct 5, 2024
05444b2
Merge branch 'main' into 5.0-dev
abidlabs Oct 5, 2024
b70c53b
Merge branch 'main' into 5.0-dev
abidlabs Oct 6, 2024
00c6bb1
chore: update versions (beta) (#9544)
gradio-pr-bot Oct 6, 2024
e0ee3d5
Update gr.ColorPicker UI (#9570)
hannahblair Oct 7, 2024
7c367b6
Fix cut off in gr.ImageEditor (#9525)
hannahblair Oct 7, 2024
b260389
Change caching to occur not at the creation of a `gr.Examples()` but …
aliabid94 Oct 7, 2024
cf39640
Add `css_paths` and `head_paths` parameters (#9524)
abidlabs Oct 7, 2024
b0fedd7
Fix most flaky Python tests in `5.0-dev` branch (#9550)
abidlabs Oct 7, 2024
3b71ed2
Api info fix (#9522)
freddyaboulton Oct 8, 2024
8dc7c12
Send Streaming data over Websocket if possible. Also support base64 o…
freddyaboulton Oct 8, 2024
06ef22e
Allow `info=` to render markdown (#9521)
dawoodkhan82 Oct 8, 2024
9f532e0
Equal height columns (#9577)
aliabid94 Oct 8, 2024
148345d
Fix chatinterface embedding height issues (#9571)
aliabid94 Oct 8, 2024
4617e60
chore: update versions (beta) (#9572)
gradio-pr-bot Oct 8, 2024
4ec2feb
Update gr.Dataframe UI with action popover (#9575)
hannahblair Oct 8, 2024
b92a762
Disable the submit button and enter-key submit when the text is empty…
whitphx Oct 8, 2024
6f8fa54
Chat Interface Multimodal Fix & Fallback to `gr.Examples()` (#9584)
dawoodkhan82 Oct 8, 2024
17e6c84
Fix `gr.Chatbot` panels layout (#9499)
hannahblair Oct 8, 2024
139152f
Equal height in row false by default (#9591)
aliabid94 Oct 8, 2024
430a26a
Fix reload mode (#9576)
freddyaboulton Oct 8, 2024
43a7f42
Chatbot autoscroll (#9582)
whitphx Oct 8, 2024
477f45c
Only move files to the cache that have a meta key (#9589)
freddyaboulton Oct 8, 2024
cc61fe7
Some more chatbot fixes (#9593)
dawoodkhan82 Oct 8, 2024
24fe222
Fix favicon in ssr mode (#9592)
freddyaboulton Oct 8, 2024
e853c41
SSR e2e + fixes (#9590)
pngwn Oct 8, 2024
a9ac396
Deep equal check with hash (#9580)
aliabid94 Oct 8, 2024
c3d93be
Adding new themes to Gradio 5.0 (#9437)
allisonwhilden Oct 8, 2024
bd6c5f2
Fix custom component CLI on main/5.0 (#9482)
freddyaboulton Oct 8, 2024
52c71ef
Fix e2e test bug (#9597)
freddyaboulton Oct 8, 2024
ffc33fa
Fix markdown code copy/check button in gr.Chatbot (#9598)
hannahblair Oct 9, 2024
6c7a490
Update `README.md` with 5.0 info and GIFs (#9564)
abidlabs Oct 9, 2024
c078892
Tweak gr.Dataframe menu UX (#9601)
hannahblair Oct 9, 2024
9fd9fda
Merge branch 'main' into 5.0-dev
abidlabs Oct 9, 2024
0ec31af
chore: update versions (beta) (#9586)
gradio-pr-bot Oct 9, 2024
9f71086
Ensure undo/try shows for final bot message in gr.Chatbot (#9600)
hannahblair Oct 9, 2024
bed573a
chore: update versions (beta) (#9604)
gradio-pr-bot Oct 9, 2024
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 5 additions & 0 deletions .changeset/dark-cougars-fold.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
"gradio": minor
---

feat:Prevent invalid values from being submitted to dropdown, etc.
74 changes: 74 additions & 0 deletions .changeset/pre.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,74 @@
{
"mode": "pre",
"tag": "beta",
"initialVersions": {
"@gradio/client": "1.3.0",
"gradio_client": "1.1.0",
"gradio": "4.38.1",
"@gradio/cdn-test": "0.0.1",
"@gradio/spaces-test": "0.0.1",
"website": "0.34.0",
"@gradio/accordion": "0.3.18",
"@gradio/annotatedimage": "0.6.13",
"@gradio/app": "1.38.1",
"@gradio/atoms": "0.7.6",
"@gradio/audio": "0.12.2",
"@gradio/box": "0.1.20",
"@gradio/button": "0.2.46",
"@gradio/chatbot": "0.12.1",
"@gradio/checkbox": "0.3.8",
"@gradio/checkboxgroup": "0.5.8",
"@gradio/code": "0.7.0",
"@gradio/colorpicker": "0.3.8",
"@gradio/column": "0.1.2",
"@gradio/dataframe": "0.8.13",
"@gradio/dataset": "0.2.0",
"@gradio/datetime": "0.0.2",
"@gradio/downloadbutton": "0.1.23",
"@gradio/dropdown": "0.7.8",
"@gradio/fallback": "0.3.8",
"@gradio/file": "0.8.5",
"@gradio/fileexplorer": "0.4.14",
"@gradio/form": "0.1.20",
"@gradio/gallery": "0.11.2",
"@gradio/group": "0.1.1",
"@gradio/highlightedtext": "0.7.2",
"@gradio/html": "0.3.1",
"@gradio/icons": "0.6.0",
"@gradio/image": "0.12.2",
"@gradio/imageeditor": "0.7.13",
"@gradio/json": "0.2.8",
"@gradio/label": "0.3.8",
"@gradio/lite": "4.38.1",
"@gradio/markdown": "0.8.1",
"@gradio/model3d": "0.11.0",
"@gradio/multimodaltextbox": "0.5.2",
"@gradio/number": "0.4.8",
"@gradio/paramviewer": "0.4.17",
"@gradio/plot": "0.6.0",
"@gradio/preview": "0.10.1",
"gradio_test": "0.5.0",
"@gradio/radio": "0.5.8",
"@gradio/row": "0.1.3",
"@gradio/simpledropdown": "0.2.8",
"@gradio/simpleimage": "0.6.2",
"@gradio/simpletextbox": "0.2.8",
"@gradio/slider": "0.4.8",
"@gradio/state": "0.1.0",
"@gradio/statustracker": "0.7.1",
"@gradio/storybook": "0.6.0",
"@gradio/tabitem": "0.2.12",
"@gradio/tabs": "0.2.11",
"@gradio/textbox": "0.6.7",
"@gradio/theme": "0.2.3",
"@gradio/timer": "0.3.0",
"@gradio/tooltip": "0.1.0",
"@gradio/tootils": "0.6.0",
"@gradio/upload": "0.11.5",
"@gradio/uploadbutton": "0.6.14",
"@gradio/utils": "0.5.1",
"@gradio/video": "0.9.2",
"@gradio/wasm": "0.11.0"
},
"changesets": []
}
5 changes: 5 additions & 0 deletions .changeset/rotten-bears-bathe.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
"gradio": major
---

feat:Deprecate for 5.0
2 changes: 1 addition & 1 deletion .config/.prettierignore
Original file line number Diff line number Diff line change
Expand Up @@ -32,4 +32,4 @@ sweep.yaml
**/venv/**
../js/app/src/api_docs/CodeSnippet.svelte
../js/app/src/api_docs/RecordingSnippet.svelte
.changeset/pre.json
/.changeset/pre.json
1 change: 1 addition & 0 deletions .github/workflows/publish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@ on:
push:
branches:
- main
- 5.0-dev

env:
CI: true
Expand Down
26 changes: 0 additions & 26 deletions client/python/test/conftest.py
Original file line number Diff line number Diff line change
Expand Up @@ -238,32 +238,6 @@ def show(n):
return demo


@pytest.fixture
def count_generator_demo_exception():
def count(n):
for i in range(int(n)):
time.sleep(0.01)
if i == 5:
raise ValueError("Oh no!")
yield i

def show(n):
return str(list(range(int(n))))

with gr.Blocks() as demo:
with gr.Column():
num = gr.Number(value=10)
with gr.Row():
count_btn = gr.Button("Count")
count_forever = gr.Button("Count forever")
with gr.Column():
out = gr.Textbox()

count_btn.click(count, num, out, api_name="count")
count_forever.click(show, num, out, api_name="count_forever", every=3)
return demo


@pytest.fixture
def file_io_demo():
demo = gr.Interface(
Expand Down
17 changes: 1 addition & 16 deletions client/python/test/test_client.py
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@

from gradio_client import Client, handle_file
from gradio_client.client import DEFAULT_TEMP_DIR
from gradio_client.exceptions import AppError, AuthenticationError
from gradio_client.exceptions import AuthenticationError
from gradio_client.utils import (
Communicator,
ProgressUnit,
Expand Down Expand Up @@ -1391,18 +1391,3 @@ def test_add_secrets(self, mock_time, mock_init, mock_duplicate, mock_add_secret
"test_value2",
token=HF_TOKEN,
)


def test_upstream_exceptions(count_generator_demo_exception):
with connect(count_generator_demo_exception, show_error=True) as client:
with pytest.raises(
AppError, match="The upstream Gradio app has raised an exception: Oh no!"
):
client.predict(7, api_name="/count")

with connect(count_generator_demo_exception) as client:
with pytest.raises(
AppError,
match="The upstream Gradio app has raised an exception but has not enabled verbose error reporting.",
):
client.predict(7, api_name="/count")
2 changes: 1 addition & 1 deletion demo/blocks_essay/run.ipynb
Original file line number Diff line number Diff line change
@@ -1 +1 @@
{"cells": [{"cell_type": "markdown", "id": "302934307671667531413257853548643485645", "metadata": {}, "source": ["# Gradio Demo: blocks_essay"]}, {"cell_type": "code", "execution_count": null, "id": "272996653310673477252411125948039410165", "metadata": {}, "outputs": [], "source": ["!pip install -q gradio "]}, {"cell_type": "code", "execution_count": null, "id": "288918539441861185822528903084949547379", "metadata": {}, "outputs": [], "source": ["import gradio as gr\n", "\n", "countries_cities_dict = {\n", " \"USA\": [\"New York\", \"Los Angeles\", \"Chicago\"],\n", " \"Canada\": [\"Toronto\", \"Montreal\", \"Vancouver\"],\n", " \"Pakistan\": [\"Karachi\", \"Lahore\", \"Islamabad\"],\n", "}\n", "\n", "\n", "def change_textbox(choice):\n", " if choice == \"short\":\n", " return gr.Textbox(lines=2, visible=True), gr.Button(interactive=True)\n", " elif choice == \"long\":\n", " return gr.Textbox(lines=8, visible=True, value=\"Lorem ipsum dolor sit amet\"), gr.Button(interactive=True)\n", " else:\n", " return gr.Textbox(visible=False), gr.Button(interactive=False)\n", "\n", "\n", "with gr.Blocks() as demo:\n", " radio = gr.Radio(\n", " [\"short\", \"long\", \"none\"], label=\"What kind of essay would you like to write?\"\n", " )\n", " text = gr.Textbox(lines=2, interactive=True, show_copy_button=True)\n", "\n", " with gr.Row():\n", " num = gr.Number(minimum=0, maximum=100, label=\"input\")\n", " out = gr.Number(label=\"output\")\n", " minimum_slider = gr.Slider(0, 100, 0, label=\"min\")\n", " maximum_slider = gr.Slider(0, 100, 100, label=\"max\")\n", " submit_btn = gr.Button(\"Submit\", variant=\"primary\")\n", "\n", " with gr.Row():\n", " country = gr.Dropdown(list(countries_cities_dict.keys()), label=\"Country\")\n", " cities = gr.Dropdown([], label=\"Cities\")\n", " \n", " @country.change(inputs=country, outputs=cities)\n", " def update_cities(country):\n", " cities = list(countries_cities_dict[country])\n", " return gr.Dropdown(choices=cities, value=cities[0], interactive=True)\n", "\n", " def reset_bounds(minimum, maximum):\n", " return gr.Number(minimum=minimum, maximum=maximum)\n", "\n", " radio.change(fn=change_textbox, inputs=radio, outputs=[text, submit_btn])\n", " gr.on(\n", " [minimum_slider.change, maximum_slider.change],\n", " reset_bounds,\n", " [minimum_slider, maximum_slider],\n", " outputs=num,\n", " )\n", " num.submit(lambda x: x, num, out)\n", "\n", "\n", "\n", "if __name__ == \"__main__\":\n", " demo.launch()\n"]}], "metadata": {}, "nbformat": 4, "nbformat_minor": 5}
{"cells": [{"cell_type": "markdown", "id": "302934307671667531413257853548643485645", "metadata": {}, "source": ["# Gradio Demo: blocks_essay"]}, {"cell_type": "code", "execution_count": null, "id": "272996653310673477252411125948039410165", "metadata": {}, "outputs": [], "source": ["!pip install -q gradio "]}, {"cell_type": "code", "execution_count": null, "id": "288918539441861185822528903084949547379", "metadata": {}, "outputs": [], "source": ["import gradio as gr\n", "\n", "countries_cities_dict = {\n", " \"USA\": [\"New York\", \"Los Angeles\", \"Chicago\"],\n", " \"Canada\": [\"Toronto\", \"Montreal\", \"Vancouver\"],\n", " \"Pakistan\": [\"Karachi\", \"Lahore\", \"Islamabad\"],\n", "}\n", "\n", "\n", "def change_textbox(choice):\n", " if choice == \"short\":\n", " return gr.Textbox(lines=2, visible=True), gr.Button(interactive=True)\n", " elif choice == \"long\":\n", " return gr.Textbox(lines=8, visible=True, value=\"Lorem ipsum dolor sit amet\"), gr.Button(interactive=True)\n", " else:\n", " return gr.Textbox(visible=False), gr.Button(interactive=False)\n", "\n", "\n", "with gr.Blocks() as demo:\n", " radio = gr.Radio(\n", " [\"short\", \"long\", \"none\"], label=\"What kind of essay would you like to write?\"\n", " )\n", " text = gr.Textbox(lines=2, interactive=True, show_copy_button=True)\n", "\n", " with gr.Row():\n", " num = gr.Number(minimum=0, maximum=100, label=\"input\")\n", " out = gr.Number(label=\"output\")\n", " minimum_slider = gr.Slider(0, 100, 0, label=\"min\")\n", " maximum_slider = gr.Slider(0, 100, 100, label=\"max\")\n", " submit_btn = gr.Button(\"Submit\", variant=\"primary\")\n", "\n", " with gr.Row():\n", " country = gr.Dropdown(list(countries_cities_dict.keys()), label=\"Country\")\n", " cities = gr.Dropdown([], label=\"Cities\")\n", " first_letter = gr.Textbox(label=\"First Letter\")\n", " \n", " @country.change(inputs=country, outputs=cities)\n", " def update_cities(country):\n", " cities = list(countries_cities_dict[country])\n", " return gr.Dropdown(choices=cities, value=cities[0], interactive=True)\n", "\n", " def reset_bounds(minimum, maximum):\n", " return gr.Number(minimum=minimum, maximum=maximum)\n", "\n", " radio.change(fn=change_textbox, inputs=radio, outputs=[text, submit_btn])\n", " gr.on(\n", " [minimum_slider.change, maximum_slider.change],\n", " reset_bounds,\n", " [minimum_slider, maximum_slider],\n", " outputs=num,\n", " )\n", " num.submit(lambda x: x, num, out)\n", "\n", " cities.change(\n", " lambda x: x[0], cities, first_letter\n", " )\n", "\n", "\n", "\n", "if __name__ == \"__main__\":\n", " demo.launch()\n"]}], "metadata": {}, "nbformat": 4, "nbformat_minor": 5}
5 changes: 5 additions & 0 deletions demo/blocks_essay/run.py
Original file line number Diff line number Diff line change
Expand Up @@ -32,6 +32,7 @@ def change_textbox(choice):
with gr.Row():
country = gr.Dropdown(list(countries_cities_dict.keys()), label="Country")
cities = gr.Dropdown([], label="Cities")
first_letter = gr.Textbox(label="First Letter")

@country.change(inputs=country, outputs=cities)
def update_cities(country):
Expand All @@ -50,6 +51,10 @@ def reset_bounds(minimum, maximum):
)
num.submit(lambda x: x, num, out)

cities.change(
lambda x: x[0], cities, first_letter
)



if __name__ == "__main__":
Expand Down
2 changes: 1 addition & 1 deletion demo/file_explorer_component_events/run.ipynb
Original file line number Diff line number Diff line change
@@ -1 +1 @@
{"cells": [{"cell_type": "markdown", "id": "302934307671667531413257853548643485645", "metadata": {}, "source": ["# Gradio Demo: file_explorer_component_events"]}, {"cell_type": "code", "execution_count": null, "id": "272996653310673477252411125948039410165", "metadata": {}, "outputs": [], "source": ["!pip install -q gradio "]}, {"cell_type": "code", "execution_count": null, "id": "288918539441861185822528903084949547379", "metadata": {}, "outputs": [], "source": ["# Downloading files from the demo repo\n", "import os\n", "os.mkdir('dir1')\n", "!wget -q -O dir1/bar.txt https://github.com/gradio-app/gradio/raw/main/demo/file_explorer_component_events/dir1/bar.txt\n", "!wget -q -O dir1/foo.txt https://github.com/gradio-app/gradio/raw/main/demo/file_explorer_component_events/dir1/foo.txt\n", "os.mkdir('dir2')\n", "!wget -q -O dir2/baz.png https://github.com/gradio-app/gradio/raw/main/demo/file_explorer_component_events/dir2/baz.png\n", "!wget -q -O dir2/foo.png https://github.com/gradio-app/gradio/raw/main/demo/file_explorer_component_events/dir2/foo.png\n", "os.mkdir('dir3')\n", "!wget -q -O dir3/dir3_bar.log https://github.com/gradio-app/gradio/raw/main/demo/file_explorer_component_events/dir3/dir3_bar.log\n", "!wget -q -O dir3/dir3_foo.txt https://github.com/gradio-app/gradio/raw/main/demo/file_explorer_component_events/dir3/dir3_foo.txt\n", "!wget -q -O dir3/dir4 https://github.com/gradio-app/gradio/raw/main/demo/file_explorer_component_events/dir3/dir4"]}, {"cell_type": "code", "execution_count": null, "id": "44380577570523278879349135829904343037", "metadata": {}, "outputs": [], "source": ["import gradio as gr\n", "from pathlib import Path\n", "\n", "base_root = Path(__file__).parent.resolve()\n", "\n", "with gr.Blocks() as demo:\n", " with gr.Row():\n", " dd = gr.Dropdown(label=\"Select File Explorer Root\",\n", " value=str(base_root / \"dir1\"),\n", " choices=[str(base_root / \"dir1\"), str(base_root / \"dir2\"),\n", " str(base_root / \"dir3\")])\n", " with gr.Group():\n", " txt_only_glob = gr.Checkbox(label=\"Show only text files\", value=False)\n", " ignore_txt_in_glob = gr.Checkbox(label=\"Ignore text files in glob\", value=False)\n", "\n", " fe = gr.FileExplorer(root_dir=str(base_root / \"dir1\"),\n", " glob=\"**/*\", interactive=True)\n", " textbox = gr.Textbox(label=\"Selected Directory\")\n", " run = gr.Button(\"Run\")\n", " total_changes = gr.Number(0, elem_id=\"total-changes\")\n", " \n", " txt_only_glob.select(lambda s: gr.FileExplorer(glob=\"*.txt\" if s else \"*\") ,\n", " inputs=[txt_only_glob], outputs=[fe])\n", " ignore_txt_in_glob.select(lambda s: gr.FileExplorer(ignore_glob=\"*.txt\" if s else None),\n", " inputs=[ignore_txt_in_glob], outputs=[fe]) \n", "\n", " dd.select(lambda s: gr.FileExplorer(root=s), inputs=[dd], outputs=[fe])\n", " run.click(lambda s: \",\".join(s) if isinstance(s, list) else s, inputs=[fe], outputs=[textbox])\n", " fe.change(lambda num: num + 1, inputs=total_changes, outputs=total_changes)\n", "\n", " with gr.Row():\n", " a = gr.Textbox(elem_id=\"input-box\")\n", " a.change(lambda x: x, inputs=[a])\n", "\n", "\n", "if __name__ == \"__main__\":\n", " demo.launch()"]}], "metadata": {}, "nbformat": 4, "nbformat_minor": 5}
{"cells": [{"cell_type": "markdown", "id": "302934307671667531413257853548643485645", "metadata": {}, "source": ["# Gradio Demo: file_explorer_component_events"]}, {"cell_type": "code", "execution_count": null, "id": "272996653310673477252411125948039410165", "metadata": {}, "outputs": [], "source": ["!pip install -q gradio "]}, {"cell_type": "code", "execution_count": null, "id": "288918539441861185822528903084949547379", "metadata": {}, "outputs": [], "source": ["# Downloading files from the demo repo\n", "import os\n", "os.mkdir('dir1')\n", "!wget -q -O dir1/bar.txt https://github.com/gradio-app/gradio/raw/main/demo/file_explorer_component_events/dir1/bar.txt\n", "!wget -q -O dir1/foo.txt https://github.com/gradio-app/gradio/raw/main/demo/file_explorer_component_events/dir1/foo.txt\n", "os.mkdir('dir2')\n", "!wget -q -O dir2/baz.png https://github.com/gradio-app/gradio/raw/main/demo/file_explorer_component_events/dir2/baz.png\n", "!wget -q -O dir2/foo.png https://github.com/gradio-app/gradio/raw/main/demo/file_explorer_component_events/dir2/foo.png\n", "os.mkdir('dir3')\n", "!wget -q -O dir3/dir3_bar.log https://github.com/gradio-app/gradio/raw/main/demo/file_explorer_component_events/dir3/dir3_bar.log\n", "!wget -q -O dir3/dir3_foo.txt https://github.com/gradio-app/gradio/raw/main/demo/file_explorer_component_events/dir3/dir3_foo.txt\n", "!wget -q -O dir3/dir4 https://github.com/gradio-app/gradio/raw/main/demo/file_explorer_component_events/dir3/dir4"]}, {"cell_type": "code", "execution_count": null, "id": "44380577570523278879349135829904343037", "metadata": {}, "outputs": [], "source": ["import gradio as gr\n", "from pathlib import Path\n", "\n", "base_root = Path(__file__).parent.resolve()\n", "\n", "with gr.Blocks() as demo:\n", " with gr.Row():\n", " dd = gr.Dropdown(label=\"Select File Explorer Root\",\n", " value=str(base_root / \"dir1\"),\n", " choices=[str(base_root / \"dir1\"), str(base_root / \"dir2\"),\n", " str(base_root / \"dir3\")])\n", " with gr.Group():\n", " txt_only_glob = gr.Checkbox(label=\"Show only text files\", value=False)\n", " ignore_txt_in_glob = gr.Checkbox(label=\"Ignore text files in glob\", value=False)\n", "\n", " fe = gr.FileExplorer(root_dir=str(base_root / \"dir1\"),\n", " glob=\"**/*\", interactive=True)\n", " textbox = gr.Textbox(label=\"Selected Directory\")\n", " run = gr.Button(\"Run\")\n", " total_changes = gr.Number(0, elem_id=\"total-changes\")\n", " \n", " txt_only_glob.select(lambda s: gr.FileExplorer(glob=\"*.txt\" if s else \"*\") ,\n", " inputs=[txt_only_glob], outputs=[fe])\n", " ignore_txt_in_glob.select(lambda s: gr.FileExplorer(ignore_glob=\"*.txt\" if s else None),\n", " inputs=[ignore_txt_in_glob], outputs=[fe]) \n", "\n", " dd.select(lambda s: gr.FileExplorer(root_dir=s), inputs=[dd], outputs=[fe])\n", " run.click(lambda s: \",\".join(s) if isinstance(s, list) else s, inputs=[fe], outputs=[textbox])\n", " fe.change(lambda num: num + 1, inputs=total_changes, outputs=total_changes)\n", "\n", " with gr.Row():\n", " a = gr.Textbox(elem_id=\"input-box\")\n", " a.change(lambda x: x, inputs=[a])\n", "\n", "\n", "if __name__ == \"__main__\":\n", " demo.launch()"]}], "metadata": {}, "nbformat": 4, "nbformat_minor": 5}
2 changes: 1 addition & 1 deletion demo/file_explorer_component_events/run.py
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@
ignore_txt_in_glob.select(lambda s: gr.FileExplorer(ignore_glob="*.txt" if s else None),
inputs=[ignore_txt_in_glob], outputs=[fe])

dd.select(lambda s: gr.FileExplorer(root=s), inputs=[dd], outputs=[fe])
dd.select(lambda s: gr.FileExplorer(root_dir=s), inputs=[dd], outputs=[fe])
run.click(lambda s: ",".join(s) if isinstance(s, list) else s, inputs=[fe], outputs=[textbox])
fe.change(lambda num: num + 1, inputs=total_changes, outputs=total_changes)

Expand Down
1 change: 0 additions & 1 deletion demo/logoutbutton_component/requirements.txt

This file was deleted.

1 change: 0 additions & 1 deletion demo/logoutbutton_component/run.ipynb

This file was deleted.

6 changes: 0 additions & 6 deletions demo/logoutbutton_component/run.py

This file was deleted.

2 changes: 0 additions & 2 deletions gradio/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,6 @@
Label,
LinePlot,
LoginButton,
LogoutButton,
Markdown,
MessageDict,
Model3D,
Expand Down Expand Up @@ -77,7 +76,6 @@
from gradio.flagging import (
CSVLogger,
FlaggingCallback,
HuggingFaceDatasetSaver,
SimpleCSVLogger,
)
from gradio.helpers import (
Expand Down
Loading
Loading