xmrt commited on
Commit
918bea5
·
1 Parent(s): d9efb2b
Files changed (1) hide show
  1. app.py +4 -6
app.py CHANGED
@@ -143,11 +143,9 @@ with block:
143
 
144
  # From file
145
  submit_detect_file.click(fn=track_blocks,
146
- inputs= [video_input],
147
- outputs = [video_output4],
148
- queue=True,
149
- batch=True,
150
- max_batch_size=16)
151
 
152
 
153
  submit_detect_web.click(fn=show_tracking,
@@ -157,7 +155,7 @@ with block:
157
 
158
 
159
  if __name__ == "__main__":
160
- block.queue(concurrency_count=20, # When you increase the concurrency_count parameter in queue(), max_threads() in launch() is automatically increased as well.
161
  max_size=30, # Maximum number of requests that the queue processes
162
  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.
163
  ).launch()
 
143
 
144
  # From file
145
  submit_detect_file.click(fn=track_blocks,
146
+ inputs= video_input,
147
+ outputs = video_output4,
148
+ queue=True)
 
 
149
 
150
 
151
  submit_detect_web.click(fn=show_tracking,
 
155
 
156
 
157
  if __name__ == "__main__":
158
+ block.queue(#concurrency_count=20, # When you increase the concurrency_count parameter in queue(), max_threads() in launch() is automatically increased as well.
159
  max_size=30, # Maximum number of requests that the queue processes
160
  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.
161
  ).launch()