github gradio-app/gradio v3.17.0

latest releases: gradio@4.44.0, @gradio/core@0.0.4, @gradio/audio@0.13.5...
19 months ago

Version 3.17.0

New Features:

Extended support for Interface.load! 🏗️

You can now load image-to-text and conversational pipelines from the hub!

Image-to-text Demo

io = gr.Interface.load("models/nlpconnect/vit-gpt2-image-captioning",
                       api_key="<optional-api-key>")
io.launch()

image

conversational Demo

chatbot = gr.Interface.load("models/microsoft/DialoGPT-medium",
                           api_key="<optional-api-key>")
chatbot.launch()

chatbot_load

By @freddyaboulton in PR 3011

Download Button added to Model3D Output Component 📥

No need for an additional file output component to enable model3d file downloads anymore. We now added a download button to the model3d component itself.

Screenshot 2023-01-18 at 3 52 45 PM

By @dawoodkhan82 in PR 3014

Fixing Auth on Spaces 🔑

Authentication on spaces works now! Third party cookies must be enabled on your browser to be able
to log in. Some browsers disable third party cookies by default (Safari, Chrome Incognito).

auth_spaces

Bug Fixes:

  • Fixes bug where interpretation event was not configured correctly by @freddyaboulton in PR 2993
  • Fix relative import bug in reload mode by @freddyaboulton in PR 2992
  • Fixes bug where png files were not being recognized when uploading images by @abidlabs in PR 3002
  • Fixes bug where external Spaces could not be loaded and used as functions if they returned files by @abidlabs in PR 3004
  • Fix bug where file serialization output was not JSON serializable by @freddyaboulton in PR 2999
  • Fixes bug where png files were not being recognized when uploading images by @abidlabs in PR 3002
  • Fixes bug where temporary uploaded files were not being added to temp sets by @abidlabs in PR 3005
  • Fixes issue where markdown support in chatbot breaks older demos @dawoodkhan82 in PR 3006
  • Fixes the /file/ route that was broken in a recent change in PR 3010
  • Fix bug where the Image component could not serialize image urls by @freddyaboulton in PR 2957
  • Fix forwarding for guides after SEO renaming by @aliabd in PR 3017
  • Switch all pages on the website to use latest stable gradio by @aliabd in PR 3016
  • Fix bug related to deprecated parameters in huggingface_hub for the HuggingFaceDatasetSaver in PR 3025
  • Added better support for symlinks in the way absolute paths are resolved by @abidlabs in PR 3037
  • Fix several minor frontend bugs (loading animation, examples as gallery) frontend @aliabid94 in PR 2961.
  • Fixes bug that the chatbot sample code does not work with certain input value by @petrov826in PR 3039.
  • Fix shadows for form element and ensure focus styles more visible in dark mode @pngwn in PR 3042.
  • Fixed bug where the Checkbox and Dropdown change events were not triggered in response to other component changes by @freddyaboulton in PR 3045
  • Fix bug where the queue was not properly restarted after launching a closed app by @freddyaboulton in PR 3022
  • Adding missing embedded components on docs by @aliabd in PR 3027
  • Fixes bug where app would crash if the file_types parameter of gr.File or gr.UploadButton was not a list by @freddyaboulton in PR 3048
  • Ensure CSS mounts correctly regardless of how many Gradio instances are on the page @pngwn in PR 3059.
  • Fix bug where input component was not hidden in the frontend for UploadButton by @freddyaboulton in PR 3053
  • Fixes issue where after clicking submit or undo, the sketch output wouldn't clear. @dawoodkhan82 in PR 3047
  • Ensure spaces embedded via the web component always use the correct URLs for server requests and change ports for testing to avoid strange collisions when users are working with embedded apps locally by @pngwn in PR 3065
  • Preserve selected image of Gallery through updated by @freddyaboulton in PR 3061
  • Fix bug where auth was not respected on HF spaces by @freddyaboulton and @aliabid94 in PR 3049
  • Fixes bug where tabs selected attribute not working if manually change tab by @tomhang25 in 3055
  • Change chatbot to show dots on progress, and fix bug where chatbot would not stick to bottom in the case of images by @aliabid94 in PR 3067

Documentation Changes:

Testing and Infrastructure Changes:

  • Adds a GitHub action to test if any large files (> 5MB) are present by @abidlabs in PR 3013

Breaking Changes:

No changes to highlight.

Full Changelog:

  • Rewrote frontend using CSS variables for themes by @pngwn in PR 2840
  • Moved telemetry requests to run on background threads by @abidlabs in PR 3054

Contributors Shoutout:

No changes to highlight.

Don't miss a new gradio release

NewReleases is sending notifications on new releases.