github gradio-app/gradio v3.3

latest releases: gradio@5.5.0, @gradio/wasm@0.15.0, @gradio/video@0.11.7...
2 years ago

Here's what's new in gradio v3.3:

1. Iterative Outputs ⏳

You can now create an iterative output simply by having your function return a generator!

Here's (part of) an example that was used to generate the interface below it. See full code.

def predict(steps, seed):
    generator = torch.manual_seed(seed)
    for i in range(1,steps):
        yield pipeline(generator=generator, num_inference_steps=i)["sample"][0]
GZ8OZb9FuFqloUeQ.mp4

2. Accordion Layout 🆕

This version of Gradio introduces a new layout component to Blocks: the Accordion. Wrap your elements in a neat, expandable layout that allows users to toggle them as needed.

Usage: (Read the docs)

with gr.Accordion("open up"):
   # components here 

accordion

3. Skops Integration 📈

Our new integration with skops allows you to load tabular classification and regression models directly from the hub.

Here's a classification example showing how quick it is to set up an interface for a model.

import gradio as gr
gr.Interface.load("models/scikit-learn/tabular-playground").launch()

187936493-5c90c01d-a6dd-400f-aa42-833a096156a1

Full change log below:

What's Changed

New Contributors

Full Changelog: v3.2...v3.3

Don't miss a new gradio release

NewReleases is sending notifications on new releases.