Spaces:
Runtime error
Runtime error
Update app.py
Browse files
app.py
CHANGED
|
@@ -18,7 +18,10 @@ enable_queue=True
|
|
| 18 |
|
| 19 |
gr.Interface(
|
| 20 |
fn=predict,
|
| 21 |
-
inputs=
|
|
|
|
|
|
|
|
|
|
| 22 |
outputs=gr.outputs.Label(num_top_classes=4),
|
| 23 |
title=title,
|
| 24 |
description=description,
|
|
|
|
| 18 |
|
| 19 |
gr.Interface(
|
| 20 |
fn=predict,
|
| 21 |
+
inputs=[
|
| 22 |
+
gr.inputs.Image(shape=(512, 512),
|
| 23 |
+
gr.Image(source="webcam", shape=(512, 512), label="Capture from Webcam")
|
| 24 |
+
]
|
| 25 |
outputs=gr.outputs.Label(num_top_classes=4),
|
| 26 |
title=title,
|
| 27 |
description=description,
|