github gradio-app/gradio v3.16.0

latest releases: gradio@5.5.0, @gradio/wasm@0.15.0, @gradio/video@0.11.7...
22 months ago

Version 3.16.0

New Features:

Send custom progress updates by adding a gr.Progress argument after the input arguments to any function. Example:

def reverse(word, progress=gr.Progress()):
    progress(0, desc="Starting")
    time.sleep(1)
    new_string = ""
    for letter in progress.tqdm(word, desc="Reversing"):
        time.sleep(0.25)
        new_string = letter + new_string
    return new_string

demo = gr.Interface(reverse, gr.Text(), gr.Text())

Progress indicator bar by @aliabid94 in PR 2750.

  • Added title argument to TabbedInterface by @MohamedAliRashad in #2888
  • Add support for specifying file extensions for gr.File and gr.UploadButton, using file_types parameter (e.g gr.File(file_count="multiple", file_types=["text", ".json", ".csv"])) by @dawoodkhan82 in #2901
  • Added multiselect option to Dropdown by @dawoodkhan82 in #2871

With multiselect set to true a user can now select multiple options from the gr.Dropdown component.

gr.Dropdown(["angola", "pakistan", "canada"], multiselect=True, value=["angola"])

Screenshot 2023-01-03 at 4 14 36 PM

Bug Fixes:

  • Fixed bug where an error opening an audio file led to a crash by @FelixDombek in PR 2898
  • Fixed bug where setting default_enabled=False made it so that the entire queue did not start by @freddyaboulton in PR 2876
  • Fixed bug where csv preview for DataFrame examples would show filename instead of file contents by @freddyaboulton in PR 2877
  • Fixed bug where an error raised after yielding iterative output would not be displayed in the browser by
    @JaySmithWpg in PR 2889
  • Fixed bug in blocks_style demo that was preventing it from launching by @freddyaboulton in PR 2890
  • Fixed bug where files could not be downloaded by @freddyaboulton in PR 2926

Documentation Changes:

  • Added a Guide on using Google Sheets to create a real-time dashboard with Gradio's DataFrame and LinePlot component, by @abidlabs in PR 2816
  • Add a components - events matrix on the docs by @aliabd in PR 2921

Testing and Infrastructure Changes:

Breaking Changes:

No changes to highlight.

Full Changelog:

  • The default_enabled parameter of the Blocks.queue method has no effect by @freddyaboultonin PR 2876
  • Added typing to several Python files in codebase by @abidlabs in PR 2887
  • Excluding untracked files from demo notebook check action by @aliabd in PR 2897
  • Optimize images and gifs by @aliabd in PR 2922
  • Updated typing by @1nF0rmed in PR 2904

Contributors Shoutout:

Don't miss a new gradio release

NewReleases is sending notifications on new releases.