queue false
Browse files- main_noweb.py +3 -3
main_noweb.py
CHANGED
@@ -315,7 +315,7 @@ def UI():
|
|
315 |
submit_pose3d_file.click(fn=pose3d,
|
316 |
inputs= [video_input, file_kpthr],
|
317 |
outputs = [video_output2, jsonoutput],
|
318 |
-
queue=
|
319 |
|
320 |
submit_hand_file.click(fn=pose2dhand,
|
321 |
inputs= [video_input, file_kpthr],
|
@@ -325,8 +325,8 @@ def UI():
|
|
325 |
|
326 |
if __name__ == "__main__":
|
327 |
block = UI()
|
328 |
-
block.queue(max_size=
|
329 |
-
concurrency_count=
|
330 |
#max_size=25, # Maximum number of requests that the queue processes
|
331 |
api_open = False # When creating a Gradio demo, you may want to restrict all traffic to happen through the user interface as opposed to the programmatic API that is automatically created for your Gradio demo.
|
332 |
).launch(
|
|
|
315 |
submit_pose3d_file.click(fn=pose3d,
|
316 |
inputs= [video_input, file_kpthr],
|
317 |
outputs = [video_output2, jsonoutput],
|
318 |
+
queue=False)
|
319 |
|
320 |
submit_hand_file.click(fn=pose2dhand,
|
321 |
inputs= [video_input, file_kpthr],
|
|
|
325 |
|
326 |
if __name__ == "__main__":
|
327 |
block = UI()
|
328 |
+
block.queue(max_size=60,
|
329 |
+
concurrency_count=40, # When you increase the concurrency_count parameter in queue(), max_threads() in launch() is automatically increased as well.
|
330 |
#max_size=25, # Maximum number of requests that the queue processes
|
331 |
api_open = False # When creating a Gradio demo, you may want to restrict all traffic to happen through the user interface as opposed to the programmatic API that is automatically created for your Gradio demo.
|
332 |
).launch(
|