Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Gradio Progress component does not work for HTML output #9692

Open
1 task done
albertvillanova opened this issue Oct 14, 2024 · 0 comments
Open
1 task done

Gradio Progress component does not work for HTML output #9692

albertvillanova opened this issue Oct 14, 2024 · 0 comments
Labels
bug Something isn't working

Comments

@albertvillanova
Copy link

Describe the bug

Gradio Progress component does not work when the output of the function is HTML.

Have you searched existing issues? 🔎

  • 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 albertvillanova added the bug Something isn't working label Oct 14, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

1 participant