Alex Gonzalez
commited on
Commit
·
bd27897
1
Parent(s):
5e473a8
Changed back to stream
Browse files
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.
|
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.stream(fn=predict, inputs=input_img, outputs=output_lbl,concurrency_limit=20,time_limit=20,stream_every=0.1)
|
27 |
|
28 |
if __name__ == "__main__":
|
29 |
|