Spaces:
Running
Running
Update app.py
Browse files
app.py
CHANGED
@@ -36,8 +36,8 @@ def predict(image_path): # receives filepath from gr.Image(type="filepath")
|
|
36 |
|
37 |
iface = gr.Interface(
|
38 |
fn=predict,
|
39 |
-
inputs=gr.Image(type="filepath"),
|
40 |
-
outputs=
|
41 |
allow_flagging="never"
|
42 |
)
|
43 |
|
|
|
36 |
|
37 |
iface = gr.Interface(
|
38 |
fn=predict,
|
39 |
+
inputs=gr.Image(type="filepath", label="image_path"),
|
40 |
+
outputs=gr.Label(num_top_classes=2),
|
41 |
allow_flagging="never"
|
42 |
)
|
43 |
|