Highlights
Setting File Upload Limits (#7909 2afca65
)
We have added a max_file_size
size parameter to launch()
that limits to size of files uploaded to the server. This limit applies to each individual file. This parameter can be specified as a string or an integer (corresponding to the size in bytes).
The following code snippet sets a max file size of 5 megabytes.
import gradio as gr
demo = gr.Interface(lambda x: x, "image", "image")
demo.launch(max_file_size="5mb")
# or
demo.launch(max_file_size=5 * gr.FileSize.MB)
Error states can now be cleared
When a component encounters an error, the error state shown in the UI can now be cleared by clicking on the x
icon in the top right of the component. This applies to all types of errors, whether it's raised in the UI or the server.
Thanks @freddyaboulton!
Features
- #8092
659d3c5
- chore(deps): update dependency iframe-resizer to v4.3.11. Thanks @renovate! - #8067
0fb058e
- Fix the Lite custom element parser so it doesn't add the .code option when the entrypoint file is already specified. Thanks @whitphx! - #8051
d665f40
- Fix custom JS function caller to concat the outputs of a dep to the inputs as the arguments. Thanks @whitphx! - #8056
2e469a5
- Using keys to preserve values between reloads. Thanks @aliabid94! - #7646
450b8cc
- Refactor JS Client. Thanks @hannahblair! - #8115
595ebf7
- Cache an error from app.submit() and show it on frontend. Thanks @whitphx! - #8084
1c99570
- AdjustView Api
containerz-index
. Thanks @hannahblair! - #8107
cbf2d4e
- fix typo from #8105. Thanks @abidlabs! - #8100
cbdfbdf
- upgraderuff
test dependency toruff==0.4.1
. Thanks @abidlabs! - #6787
15a7106
- allow custom component authors to provide custom vite plugins and svelte preprocessors. Thanks @pngwn! - #8080
568eeb2
- Fixgr.Interface.from_pipeline()
to allow audio uploads and to display classification labels correctly. Thanks @whitphx! - #8040
32cfa61
- Remove auto-created files fromgradio cc publish
and other tweaks. Thanks @freddyaboulton! - #8117
6864035
- Add session hash to gr request. Thanks @freddyaboulton! - #8061
17e83c9
- Docs Reorg and Intro Page. Thanks @aliabd! - #8065
5bf61cb
- Hide the scroll bar in WaveformControls when it's not necessary. Thanks @whitphx! - #8130
0efd72e
- Add Analytics for custom components. Thanks @freddyaboulton! - #8087
b50a67d
- FixGRADIO_CACHE_EXAMPLES
environment variable to only take effect iffn
andoutputs
parameters are provided. Thanks @abidlabs! - #8093
ac30e07
- [HF OAuth] Logout user if oauth token has expired. Thanks @Wauplin! - #8063
72f4ca8
- Fixgr.Label
styling and a11y markup. Thanks @whitphx! - #8105
006fa3c
- improve the documentation forjs
parameter inBlocks
,Interface
,ChatInterface
. Thanks @abidlabs! - #8054
176a8a4
- Fix Label component's value change detection to avoid infinite loop dispatching the change event. Thanks @whitphx! - #8030
91a7a31
- Store configs per session in the backend. Thanks @aliabid94!
Fixes
- #8077
d7461aa
- Fix an encoding issue in gradio/components/code.py. Thanks @3210448723! - #8075
5d9db89
- Fix causing Hot Reload (#8070). Thanks @zolgear! - #8041
937c858
- Use orjson to serialize dict including np.array. Thanks @whitphx! - #8097
487db7b
- Respectauth_dependency
parameter inlaunch()
. Thanks @abidlabs! - #8133
0a42e96
- Allow users to template theImageEditor
when using custom components. Thanks @pngwn! - #8066
624f9b9
- make gradio dev tools a local dependency rather than bundling. Thanks @pngwn!