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

Always show how many queues there are together when showing progress #10299

Open
1 task done
jhj0517 opened this issue Jan 7, 2025 · 0 comments
Open
1 task done

Always show how many queues there are together when showing progress #10299

jhj0517 opened this issue Jan 7, 2025 · 0 comments
Labels
enhancement New feature or request

Comments

@jhj0517
Copy link

jhj0517 commented Jan 7, 2025

Thanks for your hardwork!..

  • I have searched to see if a similar issue already exists.

Is your feature request related to a problem? Please describe.

When I add a queue with btn.click(trigger_mode="multiple"), I can only know how many queues there are at the moment when I add the queue.
When the task shows the progress for the long running job, I cannot see the how many queues there are in the UI.

For example, as in this video, I can only know how many queues there are at the moment when I add the queue:

Flashing.Queue.mp4

Describe the solution you'd like
Always show how many queues there are during the progress :
show queue2

Additional context
This is the sample code I used for the video: ( gradio==5.10.0 )

import gradio as gr
import time


def show_progress(progress=gr.Progress()):
    for i in range(10):
        progress(i/10, desc="Processing Task..")
        time.sleep(1)


with gr.Blocks() as app:
    btn = gr.Button("Queue Task", variant="primary")
    tb_output = gr.Textbox()

    btn.click(fn=show_progress, inputs=None, outputs=[tb_output], trigger_mode="multiple")

app.queue().launch()

I always thank to the gradio team!..

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

2 participants