Gradio Agents & MCP Hackathon
WinnersGradio Agents & MCP Hackathon
WinnersNew to Gradio? Start here: Getting Started
See the Release History
To install Gradio from main, run the following command:
pip install https://gradio-builds.s3.amazonaws.com/b23f75302170144e59a61cf918fc764221afa3f9/gradio-5.34.2-py3-none-any.whl
*Note: Setting share=True
in
launch()
will not work.
gradio.Progress(···)
gradio.Progress()
instance. The Progress tracker can then be updated in the function by calling the Progress object or using the tqdm
method on an Iterable.import gradio as gr
import time
def my_function(x, progress=gr.Progress()):
progress(0, desc="Starting...")
time.sleep(1)
for i in progress.tqdm(range(100)):
time.sleep(0.1)
return x
gr.Interface(my_function, gr.Textbox(), gr.Textbox()).queue().launch()
gradio.Progress.__call__(progress, ···)
Updates progress tracker with progress and message text.