Alex Gonzalez
commited on
Commit
·
fb830e3
1
Parent(s):
266102b
Change from stream to change
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.change(fn=predict, inputs=input_img, outputs=output_lbl)
|
27 |
|
28 |
if __name__ == "__main__":
|
29 |
|