-
Notifications
You must be signed in to change notification settings - Fork 33
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
Make Gradio UI button.click run in parallel #176
Comments
@imbajin Please assign this task to me. |
Thanks & assigned, but why Gradio set it(concurrency) to |
I found it in the documentation, concurrency_limit: int | None | Literal['default'] Links : https://www.gradio.app/docs/gradio/blocks So the default is 1, otherwise when it is explicitly set to None, it would be unlimited concurrent requests. I am exploring two methods here. |
@Kryst4lDem0ni4s I think both fine for us, we can first use the global settings in Blocks, modify the Button if we need to set it independently in future :) |
….Button() concurrency.
refer
incubator-hugegraph-ai/hugegraph-llm/src/hugegraph_llm/demo/rag_demo/rag_block.py
Line 176 in 2ae610c
Gradio should be the default fully asynchronous implementation, generating a
task_id
like value with each (component)click, and then executing multiple requests in parallel.However, in the current conversation, it has been tested that accessing multiple windows simultaneously can cause blocking and queuing. It is necessary to confirm the cause of the problem and enable parallelization (control parallelism)
The text was updated successfully, but these errors were encountered: