Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
|
@@ -55,7 +55,8 @@ def classify_image(img_path):
|
|
| 55 |
pred_text = decode_batch_predictions(preds)
|
| 56 |
return pred_text[0]
|
| 57 |
|
| 58 |
-
image = gr.
|
|
|
|
| 59 |
text = gr.outputs.Textbox()
|
| 60 |
|
| 61 |
iface = gr.Interface(classify_image,image,text,
|
|
|
|
| 55 |
pred_text = decode_batch_predictions(preds)
|
| 56 |
return pred_text[0]
|
| 57 |
|
| 58 |
+
image = gr.Image(type='filepath')
|
| 59 |
+
|
| 60 |
text = gr.outputs.Textbox()
|
| 61 |
|
| 62 |
iface = gr.Interface(classify_image,image,text,
|