Rohit Kochikkat Francis commited on
Commit
1ef1d5d
1 Parent(s): 3a0b675

Trying to fix deprecated error

Browse files
facefusion/uis/layouts/benchmark.py CHANGED
@@ -62,6 +62,11 @@ def listen() -> None:
62
  benchmark.listen()
63
 
64
 
65
- def run(ui : gradio.Blocks) -> None:
66
- concurrency_count = min(2, multiprocessing.cpu_count())
67
- ui.queue(concurrency_count = concurrency_count).launch(show_api = False, quiet = True)
 
 
 
 
 
 
62
  benchmark.listen()
63
 
64
 
65
+ # def run(ui : gradio.Blocks) -> None:
66
+ # concurrency_count = min(2, multiprocessing.cpu_count())
67
+ # ui.queue(concurrency_count = concurrency_count).launch(show_api = False, quiet = True)
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
+
facefusion/uis/layouts/default.py CHANGED
@@ -75,6 +75,11 @@ def listen() -> None:
75
  common_options.listen()
76
 
77
 
78
- def run(ui : gradio.Blocks) -> None:
79
- concurrency_count = min(8, multiprocessing.cpu_count())
80
- ui.queue(concurrency_count = concurrency_count).launch(show_api = False, quiet = True)
 
 
 
 
 
 
75
  common_options.listen()
76
 
77
 
78
+ # def run(ui : gradio.Blocks) -> None:
79
+ # concurrency_count = min(8, multiprocessing.cpu_count())
80
+ # ui.queue(concurrency_count = concurrency_count).launch(show_api = False, quiet = True)
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
+
facefusion/uis/layouts/webcam.py CHANGED
@@ -44,6 +44,10 @@ def listen() -> None:
44
  webcam.listen()
45
 
46
 
47
- def run(ui : gradio.Blocks) -> None:
48
- concurrency_count = min(2, multiprocessing.cpu_count())
49
- ui.queue(concurrency_count = concurrency_count).launch(show_api = False, quiet = True)
 
 
 
 
 
44
  webcam.listen()
45
 
46
 
47
+ # def run(ui : gradio.Blocks) -> None:
48
+ # concurrency_count = min(2, multiprocessing.cpu_count())
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
+