xmrt commited on
Commit
a8d7fcb
·
1 Parent(s): b146894

queue false

Browse files
Files changed (1) hide show
  1. 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=True)
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=50,
329
- concurrency_count=20, # 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(
 
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(