Spaces:
Runtime error
Runtime error
Commit
·
1cfb081
1
Parent(s):
5d0802c
updating input type path
Browse files
app.py
CHANGED
|
@@ -28,7 +28,7 @@ def predict(img_input):
|
|
| 28 |
|
| 29 |
iface = gr.Interface(
|
| 30 |
fn=predict,
|
| 31 |
-
inputs=gr.Image(shape=(512, 512)),
|
| 32 |
outputs=gr.Label(num_top_classes=3),
|
| 33 |
title=title,
|
| 34 |
description=description,
|
|
|
|
| 28 |
|
| 29 |
iface = gr.Interface(
|
| 30 |
fn=predict,
|
| 31 |
+
inputs=gr.Image(type='filepath', shape=(512, 512)),
|
| 32 |
outputs=gr.Label(num_top_classes=3),
|
| 33 |
title=title,
|
| 34 |
description=description,
|