Alex Gonzalez commited on
Commit
fb830e3
·
1 Parent(s): 266102b

Change from stream to change

Browse files
Files changed (1) hide show
  1. app.py +1 -1
app.py CHANGED
@@ -23,7 +23,7 @@ with gr.Blocks() as demo:
23
  input_img = gr.Image(label="Input", sources="webcam")
24
  with gr.Column():
25
  output_lbl = gr.Label(value="Output", label="Expression Prediction")
26
- input_img.stream(fn=predict, inputs=input_img, outputs=output_lbl, time_limit=15, stream_every=0.1, concurrency_limit=30)
27
 
28
  if __name__ == "__main__":
29
 
 
23
  input_img = gr.Image(label="Input", sources="webcam")
24
  with gr.Column():
25
  output_lbl = gr.Label(value="Output", label="Expression Prediction")
26
+ input_img.change(fn=predict, inputs=input_img, outputs=output_lbl)
27
 
28
  if __name__ == "__main__":
29