github gradio-app/gradio v3.18.0

latest releases: gradio@5.6.0, @gradio/video@0.11.8, @gradio/utils@0.8.0...
21 months ago

Version 3.18.0

New Features:

Revamped Stop Button for Interfaces 🛑

If your Interface function is a generator, there used to be a separate Stop button displayed next
to the Submit button.

We've revamed the Submit button so that it turns into a Stop button during the generation process.
Clicking on the Stop button will cancel the generation and turn it back to a Submit button.
The Stop button will automatically turn back to a Submit button at the end of the generation if you don't use it!

By @freddyaboulton in PR 3124

Queue now works with reload mode!

You can now call queue on your demo outside of the if __name__ == "__main__" block and
run the script in reload mode with the gradio command.

Any changes to the app.py file will be reflected in the webpage automatically and the queue will work
properly!

By @freddyaboulton in PR 3089

Allow serving files from additional directories

demo = gr.Interface(...)
demo.launch(
  file_directories=["/var/lib/demo/path/to/resources"]
)

By @maxaudron in PR 3075

Bug Fixes:

  • Fixes URL resolution on Windows by @abidlabs in PR 3108
  • Example caching now works with components without a label attribute (e.g. Column) by @abidlabs in PR 3123
  • Ensure the Video component correctly resets the UI state whe a new video source is loaded and reduce choppiness of UI by @pngwn in PR 3117
  • Fixes loading private Spaces by @abidlabsin PR 3068
  • Added a warning when attempting to launch an Interface via the %%blocks jupyter notebook magic command by @freddyaboulton in PR 3126
  • Fixes bug where interactive output image cannot be set when in edit mode by @dawoodkhan82 in PR 3135
  • A share link will automatically be created when running on Sagemaker notebooks so that the front-end is properly displayed by @abidlabs in PR 3137
  • Fixes a few dropdown component issues; hide checkmark next to options as expected, and keyboard hover is visible by @dawoodkhan82 in [PR 3145]#3145)
  • Fixed bug where example pagination buttons were not visible in dark mode or displayed under the examples table. By @freddyaboulton in PR 3144
  • Fixed bug where the font color of axis labels and titles for native plots did not respond to dark mode preferences. By @freddyaboulton in PR 3146

Documentation Changes:

  • Added a guide on the 4 kinds of Gradio Interfaces by @yvrjsharma and @abidlabs in PR 3003
  • Explained that the parameters in launch will not be respected when using reload mode, e.g. gradio command by @freddyaboulton in PR 3089
  • Added a demo to show how to set up variable numbers of outputs in Gradio by @abidlabs in PR 3127
  • Updated docs to reflect that the equal_height parameter should be passed to the .style() method of gr.Row() by @freddyaboulton in PR 3125

Testing and Infrastructure Changes:

No changes to highlight.

Breaking Changes:

No changes to highlight.

Full Changelog:

Contributors Shoutout:

No changes to highlight.

Don't miss a new gradio release

NewReleases is sending notifications on new releases.