You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@hugegraph.apache.org by "imbajin (via GitHub)" <gi...@apache.org> on 2025/02/25 08:52:44 UTC
[I] Make Gradio UI button.click run in parallel [incubator-hugegraph-ai]
imbajin opened a new issue, #176:
URL: https://github.com/apache/incubator-hugegraph-ai/issues/176
(no comment)
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: dev-unsubscribe@hugegraph.apache.org.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
Re: [I] Make Gradio UI button.click run in parallel [incubator-hugegraph-ai]
Posted by "imbajin (via GitHub)" <gi...@apache.org>.
imbajin commented on issue #176:
URL: https://github.com/apache/incubator-hugegraph-ai/issues/176#issuecomment-2687375850
> I found it in the documentation, concurrency_limit: int | None | Literal['default'] default = "default" If set, this is the maximum number of this event that can be running simultaneously. Can be set to None to mean no concurrency_limit (any number of this event can be running simultaneously). Set to "default" to use the default concurrency limit (defined by the `default_concurrency_limit` parameter in `Blocks.queue()`, which itself is 1 by default).
>
> Links : [gradio.app/docs/gradio/blocks](https://www.gradio.app/docs/gradio/blocks) [gradio.app/docs/gradio/button](https://www.gradio.app/docs/gradio/button)
>
> 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. The first method is to set this parameter in the button gradio.Button() and the other method is to utilize Blocks with gradio.Blocks().
@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:)
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: issues-unsubscribe@hugegraph.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: issues-unsubscribe@hugegraph.apache.org
For additional commands, e-mail: issues-help@hugegraph.apache.org
Re: [I] Make Gradio UI button.click run in parallel [incubator-hugegraph-ai]
Posted by "chiruu12 (via GitHub)" <gi...@apache.org>.
chiruu12 commented on issue #176:
URL: https://github.com/apache/incubator-hugegraph-ai/issues/176#issuecomment-2681184333
.take
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: issues-unsubscribe@hugegraph.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: issues-unsubscribe@hugegraph.apache.org
For additional commands, e-mail: issues-help@hugegraph.apache.org
Re: [I] Make Gradio UI button.click run in parallel [incubator-hugegraph-ai]
Posted by "imbajin (via GitHub)" <gi...@apache.org>.
imbajin commented on issue #176:
URL: https://github.com/apache/incubator-hugegraph-ai/issues/176#issuecomment-2687104734
> [<img alt="" width="16" height="16" src="https://avatars.githubusercontent.com/u/17706099?u=2f3f6cb6eee585e9925f80a8efbd53db639b2bae&v=4&size=80">@imbajin](https://github.com/imbajin?rgh-link-date=2025-02-27T04%3A54%3A23.000Z) Please assign this task to me. **Cause of the Problem:** Blocking and Queuing Behavior: Gradio, by default, has a concurrency limit of 1. This causes blocking when multiple users or windows are accessing the application simultaneously. No Asynchronous Execution: The current implementation does not specify concurrency_limit, leading to sequential execution. Queue Configuration: If queue() is not configured properly, tasks are processed one at a time.
Thanks & assigned, but why Gradio set it(concurrency) to `1`? (Really confused)
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: issues-unsubscribe@hugegraph.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: issues-unsubscribe@hugegraph.apache.org
For additional commands, e-mail: issues-help@hugegraph.apache.org
Re: [I] Make Gradio UI button.click run in parallel [incubator-hugegraph-ai]
Posted by "Kryst4lDem0ni4s (via GitHub)" <gi...@apache.org>.
Kryst4lDem0ni4s commented on issue #176:
URL: https://github.com/apache/incubator-hugegraph-ai/issues/176#issuecomment-2687250092
I found it in the documentation, concurrency_limit: int | None | Literal['default']
default = "default"
If set, this is the maximum number of this event that can be running simultaneously. Can be set to None to mean no concurrency_limit (any number of this event can be running simultaneously). Set to "default" to use the default concurrency limit (defined by the `default_concurrency_limit` parameter in `Blocks.queue()`, which itself is 1 by default).
Links : https://www.gradio.app/docs/gradio/blocks
https://www.gradio.app/docs/gradio/button
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.
The first method is to set this parameter in the button gradio.Button() and the other method is to utilize Blocks with gradio.Blocks().
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: issues-unsubscribe@hugegraph.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: issues-unsubscribe@hugegraph.apache.org
For additional commands, e-mail: issues-help@hugegraph.apache.org
Re: [I] Make Gradio UI button.click run in parallel [incubator-hugegraph-ai]
Posted by "imbajin (via GitHub)" <gi...@apache.org>.
imbajin commented on issue #176:
URL: https://github.com/apache/incubator-hugegraph-ai/issues/176#issuecomment-2687370666
> I found it in the documentation, concurrency_limit: int | None | Literal['default']我在文档中找到了它,concurrency_limit: int |无 |字面量['default'] default = "default" default = “default” If set, this is the maximum number of this event that can be running simultaneously. Can be set to None to mean no concurrency_limit (any number of this event can be running simultaneously). Set to "default" to use the default concurrency limit (defined by the `default_concurrency_limit` parameter in `Blocks.queue()`, which itself is 1 by default).如果设置,则这是可以同时运行的此事件的最大数量。可以设置为 None 表示没有concurrency_limit(此事件的任意数量的可以同时运行)。设置为 “default” 以使用默认并发限制(由 `Blocks.queue()` 中的 `default_concurrency_limit` 参数定义,该限制本身默认为 1)。
>
> Links : [gradio.app/docs/gradio/blocks](https://www.gradio.app/docs/gradio/blocks)链接 : [gradio.app/docs/gradio/blocks](https://www.gradio.app/docs/gradio/blocks) [gradio.app/docs/gradio/button](https://www.gradio.app/docs/gradio/button)
>
> 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.因此,默认值为 1,否则,当它显式设置为 None 时,它将是无限的并发请求。我在这里探索两种方法。 The first method is to set this parameter in the button gradio.Button() and the other method is to utilize Blocks with gradio.Blocks().第一种方法是在 button gradio 中设置此参数。Button() 和另一种方法是将 Blocks 与 gradio 一起使用。Blocks() 的 Blocks() 中。
@Kryst4lDem0ni4s I think both fine for us, we can first use the global settings in `Blocks`, if we need to set it independently on the buttons
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: issues-unsubscribe@hugegraph.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: issues-unsubscribe@hugegraph.apache.org
For additional commands, e-mail: issues-help@hugegraph.apache.org
Re: [I] Make Gradio UI button.click run in parallel [incubator-hugegraph-ai]
Posted by "Kryst4lDem0ni4s (via GitHub)" <gi...@apache.org>.
Kryst4lDem0ni4s commented on issue #176:
URL: https://github.com/apache/incubator-hugegraph-ai/issues/176#issuecomment-2686912666
@imbajin Please assign this task to me.
**Cause of the Problem:**
Blocking and Queuing Behavior: Gradio, by default, has a concurrency limit of 1. This causes blocking when multiple users or windows are accessing the application simultaneously.
No Asynchronous Execution: The current implementation does not specify concurrency_limit, leading to sequential execution.
Queue Configuration: If queue() is not configured properly, tasks are processed one at a time.
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: issues-unsubscribe@hugegraph.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: issues-unsubscribe@hugegraph.apache.org
For additional commands, e-mail: issues-help@hugegraph.apache.org
Re: [I] Make Gradio UI button.click run in parallel [incubator-hugegraph-ai]
Posted by "imbajin (via GitHub)" <gi...@apache.org>.
imbajin closed issue #176: Make Gradio UI button.click run in parallel
URL: https://github.com/apache/incubator-hugegraph-ai/issues/176
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: dev-unsubscribe@hugegraph.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org