fix(deps): update dependency gradio to v3.22.1 #33
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
This PR contains the following updates:
3.18.0
->3.22.1
Release Notes
gradio-app/gradio
v3.22.1
Compare Source
New Features:
No changes to highlight.
Bug Fixes:
Documentation Changes:
No changes to highlight.
Testing and Infrastructure Changes:
No changes to highlight.
Breaking Changes:
No changes to highlight.
Full Changelog:
No changes to highlight.
Contributors Shoutout:
No changes to highlight.
v3.22.0
Compare Source
New Features:
Official Theme release
Gradio now supports a new theme system, which allows you to customize the look and feel of your app. You can now use the
theme=
kwarg to pass in a prebuilt theme, or customize your own! See https://gradio.app/theming-guide/ for more details. By @aliabid94 in PR 3470 and PR 3497elem_classes
Add keyword argument
elem_classes
to Components to control class names of components, in the same manner as existingelem_id
.By @aliabid94 in PR 3466
Bug Fixes:
gr.Request
object failing to handle dictionaries when nested keys couldn't be converted to variable names #3454 by @radames in PR 3459Documentation Changes:
Testing and Infrastructure Changes:
pyright==1.1.298
for stability by @abidlabs in PR 3475IOComponent.add_interactive_to_config()
by @space-nuko in PR 3476IOComponent.generate_sample()
by @space-nuko in PR 3475Breaking Changes:
No changes to highlight.
Full Changelog:
Contributors Shoutout:
No changes to highlight.
v3.21.0
Compare Source
New Features:
Theme Sharing 🎨 🤝
You can now share your gradio themes with the world!
After creating a theme, you can upload it to the HuggingFace Hub to let others view it, use it, and build off of it!
Uploading
There are two ways to upload a theme, via the theme class instance or the command line.
First save the theme to disk
Then use the
upload_theme
command:The
version
must be a valid semantic version string.This creates a space on the huggingface hub to host the theme files and show potential users a preview of your theme.
An example theme space is here: https://huggingface.co/spaces/freddyaboulton/dracula_revamped
Downloading
To use a theme from the hub, use the
from_hub
method on theThemeClass
and pass it to your app:You can also pass the theme string directly to
Blocks
orInterface
(gr.Blocks(theme="freddyaboulton/my_theme")
)You can pin your app to an upstream theme version by using semantic versioning expressions.
For example, the following would ensure the theme we load from the
my_theme
repo was between versions0.1.0
and0.2.0
:by @freddyaboulton in PR 3428
Code component 🦾
New code component allows you to enter, edit and display code with full syntax highlighting by @pngwn in PR 3421
The
Chatbot
component now supports audio, video, and imagesThe
Chatbot
component now supports audio, video, and images with a simple syntax: simplypass in a tuple with the URL or filepath (the second optional element of the tuple is alt text), and the image/audio/video will be displayed:
Note: images were previously supported via Markdown syntax and that is still supported for backwards compatibility. By @dawoodkhan82 in PR 3413
Allow consecutive function triggers with
.then
and.success
by @aliabid94 in PR 3430New code component allows you to enter, edit and display code with full syntax highlighting by @pngwn in PR 3421
.select()
event listener, which also includes event data that can be passed as an argument to a function with type hintgr.SelectData
. The following components support the.select()
event listener: Chatbot, CheckboxGroup, Dataframe, Dropdown, File, Gallery, HighlightedText, Label, Radio, TabItem, Tab, Textbox. Example usage:By @aliabid94 in PR 3399
Textbox
component now includes a copy button by @abidlabs in PR 3452Bug Fixes:
huggingface_hub
to send telemetry oninterface
andblocks
; eventually to replace segment by @dawoodkhan82 in PR 3342generic_update
by shallow copying by @gitgithan in PR 3405 to fix #3282BlockContext
inutils.py
by @freddyaboulton in PR 3424Documentation Changes:
Testing and Infrastructure Changes:
Breaking Changes:
No changes to highlight.
Full Changelog:
generic_update
by shallow copying by @gitgithan in PR 3405 to fix #3282JSON
component (show_label parameter, icons) in @abidlabs in PR 3451Contributors Shoutout:
No changes to highlight.
v3.20.1
Compare Source
New Features:
height
kwarg to style ingr.Chatbot()
component by @dawoodkhan82 in PR 3369Bug Fixes:
Documentation Changes:
No changes to highlight.
Testing and Infrastructure Changes:
No changes to highlight.
Breaking Changes:
No changes to highlight.
Full Changelog:
No changes to highlight.
Contributors Shoutout:
No changes to highlight.
v3.20.0
Compare Source
New Features:
Release event for Slider
Now you can trigger your python function to run when the slider is released as opposed to every slider change value!
Simply use the
release
method on the sliderBy @freddyaboulton in PR 3353
Dropdown Component Updates
The standard dropdown component now supports searching for choices. Also when
multiselect
isTrue
, you can specifymax_choices
to set the maximum number of choices you want the user to be able to select from the dropdown component.by @dawoodkhan82 in PR 3211
Download button for images 🖼️
Output images will now automatically have a download button displayed to make it easier to save and share
the results of Machine Learning art models.
By @freddyaboulton in PR 3297
gr.Button
component by settinginteractive=False
by @abidlabs in PR 3266 and PR 3288flagging_options
display text and saved flag separately by @abidlabs in PR 3289brush_radius
for theImage
component both as a default and viaImage.update()
by @pngwn in PR 3277info=
argument to form components to enable extra context provided to users, by @aliabid94 in PR 3291gr.Request()
object using the.username
attribute by @abidlabs in PR 3296preview
option toGallery.style
that launches the gallery in preview mode when first loaded by @freddyaboulton in PR 3345Bug Fixes:
mirror_webcam
is always respected by @pngwn in PR 3245initial_height
when loading is complete so the embed finds its natural height once it is loaded @pngwn in PR 3292shape
argument on the front end when creating Image Sketches by @pngwn in PR 3277Dropdown's
value to be[]
and adding a change event on the dropdown by @freddyaboulton in PR 3295height
set inGallery.style
was not respected by the front-end by @freddyaboulton in PR 3343gr.Dropdown(Multiselect=True)
is an empty list and the initial value forgr.Dropdown(Multiselect=False)
is an empty string by @pngwn in PR 3338analytics_enabled=True
by @abidlabs in PR 3349Documentation Changes:
types
field to the dependency field in the config by @freddyaboulton in PR 3315gr.BarPlot
component by @abidlabs in PR 3275
Testing and Infrastructure Changes:
Breaking Changes:
chatbot.style(color_map=)
by [@aliabid94] in PR 3370Full Changelog:
Contributors Shoutout:
No changes to highlight.
v3.19.1
Compare Source
New Features:
No changes to highlight.
Bug Fixes:
Documentation Changes:
No changes to highlight.
Testing and Infrastructure Changes:
No changes to highlight.
Breaking Changes:
No changes to highlight.
Full Changelog:
Contributors Shoutout:
No changes to highlight.
v3.19.0
Compare Source
New Features:
Improved embedding experience
When embedding a spaces-hosted gradio app as a web component, you now get an improved UI linking back to the original space, better error handling and more intelligent load performance. No changes are required to your code to benefit from this enhanced experience; simply upgrade your gradio SDK to the latest version.
This behaviour is configurable. You can disable the info panel at the bottom by passing
info="false"
. You can disable the container entirely by passingcontainer="false"
.Error statuses are reported in the UI with an easy way for end-users to report problems to the original space author via the community tab of that Hugginface space:
By default, gradio apps are lazy loaded, vastly improving performance when there are several demos on the page. Metadata is loaded ahead of time, but the space will only be loaded and rendered when it is in view.
This behaviour is configurable. You can pass
eager="true"
to load and render the space regardless of whether or not it is currently on the screen.by @pngwn in PR 3205
New
gr.BarPlot
component! 📊Create interactive bar plots from a high-level interface with
gr.BarPlot
.No need to remember matplotlib syntax anymore!
Example usage:
By @freddyaboulton in PR 3157
Bokeh plots are back! 🌠
Fixed a bug that prevented bokeh plots from being displayed on the front end and extended support for both 2.x and 3.x versions of bokeh!
By @freddyaboulton in PR 3212
Bug Fixes:
None
as the second value in the tuple, to add a single message in the chatbot from the "bot" side.By @dawoodkhan82 in PR 3165
gr.utils.delete_none
to only remove props whose values areNone
from the config by @abidlabs in PR 3188change
event is now triggered when users click the 'Clear All' button of the multiselect DropDown component by @freddyaboulton in PR 3195clear
event is now triggered when images are cleared by @freddyaboulton in PR 3218Documentation Changes:
Testing and Infrastructure Changes:
No changes to highlight.
Breaking Changes:
No changes to highlight.
Full Changelog:
File
component orUploadButton
component includes afile_types
parameter along withfile_count=="dir"
) by @abidlabs in PR 3194gr.Error
instead of a regular Python error when you usegr.Interface.load()
to load a model and there's an error querying the HF API by @abidlabs in PR 3194connection is disrupted by by XciD, Wauplin, and @abidlabs in PR 3149 and a follow-up to allow it to work for users upgrading from a previous Gradio version in PR 3221
Contributors Shoutout:
No changes to highlight.
Configuration
📅 Schedule: Branch creation - At any time (no schedule defined), Automerge - At any time (no schedule defined).
🚦 Automerge: Enabled.
♻ Rebasing: Whenever PR becomes conflicted, or you tick the rebase/retry checkbox.
🔕 Ignore: Close this PR and you won't be reminded about this update again.
This PR has been generated by Mend Renovate. View repository job log here.