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: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]


---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to