浏览代码

fix:change concurrent_count into concurrency_limit (#549)

Easterlings 1 年之前
父节点
当前提交
f83d981fe4
共有 1 个文件被更改,包括 1 次插入1 次删除
  1. 1 1
      rembg/commands/s_command.py

+ 1 - 1
rembg/commands/s_command.py

@@ -276,9 +276,9 @@ def s_command(port: int, log_level: str, threads: int) -> None:
                 gr.components.Textbox(label="Arguments"),
                 gr.components.Textbox(label="Arguments"),
             ],
             ],
             gr.components.Image(type="filepath", label="Output"),
             gr.components.Image(type="filepath", label="Output"),
+            concurrency_limit=3
         )
         )
 
 
-        interface.queue(concurrency_count=3)
         app = gr.mount_gradio_app(app, interface, path="/")
         app = gr.mount_gradio_app(app, interface, path="/")
         return app
         return app