Alex Gonzalez
commited on
Commit
·
ed986c3
1
Parent(s):
2a29d13
Made sure the stream function used the right predict function.
Browse files
app.py
CHANGED
@@ -10,7 +10,7 @@ with gr.Blocks() as demo:
|
|
10 |
input_img = gr.Image(label="Input", sources="webcam")
|
11 |
with gr.Column():
|
12 |
output_lbl = gr.Label(value="Output", label="Expression Prediction")
|
13 |
-
input_img.stream(
|
14 |
|
15 |
if __name__ == "__main__":
|
16 |
|
|
|
10 |
input_img = gr.Image(label="Input", sources="webcam")
|
11 |
with gr.Column():
|
12 |
output_lbl = gr.Label(value="Output", label="Expression Prediction")
|
13 |
+
input_img.stream(fn=predict, inputs=[input_img], outputs=[output_lbl], time_limit=15, stream_every=0.1, concurrency_limit=30)
|
14 |
|
15 |
if __name__ == "__main__":
|
16 |
|