Rohit Kochikkat Francis commited on
Commit
4847ebd
1 Parent(s): 1ef1d5d
facefusion/uis/layouts/benchmark.py CHANGED
@@ -68,5 +68,4 @@ def listen() -> None:
68
 
69
  def run(ui: gradio.Blocks) -> None:
70
  concurrency_limit = min(2, multiprocessing.cpu_count())
71
- ui.queue().launch(show_api=False, quiet=True, concurrency_limit=concurrency_limit)
72
-
 
68
 
69
  def run(ui: gradio.Blocks) -> None:
70
  concurrency_limit = min(2, multiprocessing.cpu_count())
71
+ ui.queue().launch(show_api=False, quiet=True, max_threads=concurrency_limit)
 
facefusion/uis/layouts/default.py CHANGED
@@ -81,5 +81,5 @@ def listen() -> None:
81
 
82
  def run(ui: gradio.Blocks) -> None:
83
  concurrency_limit = min(2, multiprocessing.cpu_count())
84
- ui.queue().launch(show_api=False, quiet=True, concurrency_limit=concurrency_limit)
85
 
 
81
 
82
  def run(ui: gradio.Blocks) -> None:
83
  concurrency_limit = min(2, multiprocessing.cpu_count())
84
+ ui.queue().launch(show_api=False, quiet=True, max_threads=concurrency_limit)
85
 
facefusion/uis/layouts/webcam.py CHANGED
@@ -49,5 +49,5 @@ def listen() -> None:
49
  # ui.queue(concurrency_count = concurrency_count).launch(show_api = False, quiet = True)
50
  def run(ui: gradio.Blocks) -> None:
51
  concurrency_limit = min(2, multiprocessing.cpu_count())
52
- ui.queue().launch(show_api=False, quiet=True, concurrency_limit=concurrency_limit)
53
 
 
49
  # ui.queue(concurrency_count = concurrency_count).launch(show_api = False, quiet = True)
50
  def run(ui: gradio.Blocks) -> None:
51
  concurrency_limit = min(2, multiprocessing.cpu_count())
52
+ ui.queue().launch(show_api=False, quiet=True, max_threads=concurrency_limit)
53