gradio icon indicating copy to clipboard operation
gradio copied to clipboard

Gradio Progress component does not work for HTML output

Open albertvillanova opened this issue 1 year ago • 1 comments

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

albertvillanova avatar Oct 14 '24 12:10 albertvillanova