Spaces:
Sleeping
Sleeping
add interactive feature
Browse files
app.py
CHANGED
|
@@ -22,7 +22,7 @@ def classify(image):
|
|
| 22 |
|
| 23 |
return labels[pred_class]
|
| 24 |
|
| 25 |
-
webcam = gr.Image(source='webcam', streaming=True, shape=(48, 48), image_mode='L')
|
| 26 |
|
| 27 |
interface = gr.Interface(fn=classify, inputs=webcam, outputs='text')
|
| 28 |
interface.launch();
|
|
|
|
| 22 |
|
| 23 |
return labels[pred_class]
|
| 24 |
|
| 25 |
+
webcam = gr.Image(source='webcam', streaming=True, shape=(48, 48), image_mode='L', interactive=True)
|
| 26 |
|
| 27 |
interface = gr.Interface(fn=classify, inputs=webcam, outputs='text')
|
| 28 |
interface.launch();
|