gradio
gradio copied to clipboard
Gradio Progress component does not work for HTML output
Describe the bug
Gradio Progress component does not work when the output of the function is HTML.
Have you searched existing issues? 🔎
- [X] I have searched and found no existing issues
Reproduction
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.HTML()).queue().launch()
Screenshot
See Hugging Face Space: https://huggingface.co/spaces/albertvillanova/tmp-progress
Logs
No response
System Info
Hugging Face Space
Severity
Blocking usage of gradio