maxinethegreat commited on
Commit
a514407
·
1 Parent(s): 34b577e

try to reduce lag

Browse files
Files changed (1) hide show
  1. app.py +2 -2
app.py CHANGED
@@ -44,7 +44,7 @@ def predict_emotion(frame):
44
  input_image = gr.Image(source = "webcam", streaming = True, label="Your Face")
45
  # video = gr.inputs.Video(source = "webcam" )
46
 
47
- output_image = gr.outputs.Image( type="numpy", label="Detected Emotion" )
48
 
49
 
50
 
@@ -59,6 +59,6 @@ iface = gr.Interface(
59
 
60
  )
61
 
62
- iface.queue(concurrency_count=5)
63
 
64
  iface.launch()
 
44
  input_image = gr.Image(source = "webcam", streaming = True, label="Your Face")
45
  # video = gr.inputs.Video(source = "webcam" )
46
 
47
+ output_image = gr.Image( type="numpy", label="Detected Emotion" )
48
 
49
 
50
 
 
59
 
60
  )
61
 
62
+ iface.queue(concurrency_count=100)
63
 
64
  iface.launch()