fffiloni commited on
Commit
a8517d8
1 Parent(s): fd486d9

do not use concurrency limit

Browse files
Files changed (1) hide show
  1. app.py +17 -13
app.py CHANGED
@@ -223,27 +223,31 @@ with gr.Blocks(css=css) as demo:
223
  inputs = None,
224
  outputs = [rotate_pitch, rotate_yaw, rotate_roll, blink, eyebrow, wink, pupil_x, pupil_y, aaa, eee, woo, smile],
225
  queue = False
 
 
 
 
 
226
  )
227
 
228
  submit_btn.click(
229
  fn=predict,
230
  inputs=inputs,
231
  outputs=outputs,
232
- concurrency_limit=4,
233
  show_api=False
234
  )
235
 
236
- rotate_pitch.release(fn=predict, inputs=inputs, outputs=outputs, show_progress="minimal", concurrency_limit=2, show_api=False)
237
- rotate_yaw.release(fn=predict, inputs=inputs, outputs=outputs, show_progress="minimal", concurrency_limit=2, show_api=False)
238
- rotate_roll.release(fn=predict, inputs=inputs, outputs=outputs, show_progress="minimal", concurrency_limit=2, show_api=False)
239
- blink.release(fn=predict, inputs=inputs, outputs=outputs, show_progress="minimal", concurrency_limit=2, show_api=False)
240
- eyebrow.release(fn=predict, inputs=inputs, outputs=outputs, show_progress="minimal", concurrency_limit=2, show_api=False)
241
- wink.release(fn=predict, inputs=inputs, outputs=outputs, show_progress="minimal", concurrency_limit=2, show_api=False)
242
- pupil_x.release(fn=predict, inputs=inputs, outputs=outputs, show_progress="minimal", concurrency_limit=2, show_api=False)
243
- pupil_y.release(fn=predict, inputs=inputs, outputs=outputs, show_progress="minimal", concurrency_limit=2, show_api=False)
244
- aaa.release(fn=predict, inputs=inputs, outputs=outputs, show_progress="minimal", concurrency_limit=2, show_api=False)
245
- eee.release(fn=predict, inputs=inputs, outputs=outputs, show_progress="minimal", concurrency_limit=2, show_api=False)
246
- woo.release(fn=predict, inputs=inputs, outputs=outputs, show_progress="minimal", concurrency_limit=2, show_api=False)
247
- smile.release(fn=predict, inputs=inputs, outputs=outputs, show_progress="minimal", concurrency_limit=2, show_api=False)
248
 
249
  demo.queue(api_open=False).launch(share=False, show_error=True, show_api=False)
 
223
  inputs = None,
224
  outputs = [rotate_pitch, rotate_yaw, rotate_roll, blink, eyebrow, wink, pupil_x, pupil_y, aaa, eee, woo, smile],
225
  queue = False
226
+ ).then(
227
+ fn=predict,
228
+ inputs=inputs,
229
+ outputs=outputs,
230
+ show_api=False
231
  )
232
 
233
  submit_btn.click(
234
  fn=predict,
235
  inputs=inputs,
236
  outputs=outputs,
 
237
  show_api=False
238
  )
239
 
240
+ rotate_pitch.release(fn=predict, inputs=inputs, outputs=outputs, show_progress="minimal", show_api=False)
241
+ rotate_yaw.release(fn=predict, inputs=inputs, outputs=outputs, show_progress="minimal", show_api=False)
242
+ rotate_roll.release(fn=predict, inputs=inputs, outputs=outputs, show_progress="minimal", show_api=False)
243
+ blink.release(fn=predict, inputs=inputs, outputs=outputs, show_progress="minimal", show_api=False)
244
+ eyebrow.release(fn=predict, inputs=inputs, outputs=outputs, show_progress="minimal", show_api=False)
245
+ wink.release(fn=predict, inputs=inputs, outputs=outputs, show_progress="minimal", show_api=False)
246
+ pupil_x.release(fn=predict, inputs=inputs, outputs=outputs, show_progress="minimal", show_api=False)
247
+ pupil_y.release(fn=predict, inputs=inputs, outputs=outputs, show_progress="minimal", show_api=False)
248
+ aaa.release(fn=predict, inputs=inputs, outputs=outputs, show_progress="minimal", show_api=False)
249
+ eee.release(fn=predict, inputs=inputs, outputs=outputs, show_progress="minimal", show_api=False)
250
+ woo.release(fn=predict, inputs=inputs, outputs=outputs, show_progress="minimal", show_api=False)
251
+ smile.release(fn=predict, inputs=inputs, outputs=outputs, show_progress="minimal", show_api=False)
252
 
253
  demo.queue(api_open=False).launch(share=False, show_error=True, show_api=False)