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

The progress bar still exists when the backend raise an error #10713

Open
1 task done
Col0ring opened this issue Mar 3, 2025 · 1 comment · May be fixed by #10719
Open
1 task done

The progress bar still exists when the backend raise an error #10713

Col0ring opened this issue Mar 3, 2025 · 1 comment · May be fixed by #10719
Assignees
Labels
bug Something isn't working Regression Bugs did not exist in previous versions of Gradio

Comments

@Col0ring
Copy link
Contributor

Col0ring commented Mar 3, 2025

Describe the bug

In the previous version (5.12.0), when an error was raised, the progress bar would immediately disappear and display a closable alert.

gradio 5.20.0
Image

gradio 5.12.0
Image

Have you searched existing issues? 🔎

  • I have searched and found no existing issues

Reproduction

import gradio as gr


def submit(input_value):
    raise gr.Error("test")


with gr.Blocks() as demo:
    chatbot = gr.Chatbot()
    input = gr.Textbox()
    input.submit(submit, inputs=input, outputs=[input, chatbot])

demo.launch()

Screenshot

No response

Logs

System Info

gradio version: 5.20.0
gradio_client version: 1.7.2

Severity

Blocking usage of gradio

@Col0ring Col0ring added the bug Something isn't working label Mar 3, 2025
@abidlabs
Copy link
Member

abidlabs commented Mar 3, 2025

Yeah I just noticed this as well, thanks @Col0ring for raising this issue

@abidlabs abidlabs added the Regression Bugs did not exist in previous versions of Gradio label Mar 3, 2025
@aliabid94 aliabid94 linked a pull request Mar 3, 2025 that will close this issue
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working Regression Bugs did not exist in previous versions of Gradio
Projects
None yet
Development

Successfully merging a pull request may close this issue.

3 participants