Spaces:
Runtime error
Runtime error
tomaseo2022
commited on
Commit
•
6e3f070
1
Parent(s):
9dbea80
Update app.py
Browse files
app.py
CHANGED
@@ -28,7 +28,7 @@ def predict(image):
|
|
28 |
_, predicted = output.max(1)
|
29 |
return predicted.item()
|
30 |
|
31 |
-
input_image = gr.
|
32 |
output_text = gr.outputs.Textbox()
|
33 |
|
34 |
gr.Interface(fn=predict, inputs=input_image, outputs=output_text).launch()
|
|
|
28 |
_, predicted = output.max(1)
|
29 |
return predicted.item()
|
30 |
|
31 |
+
input_image = gr.component.Image(type="filepath", label="Input")
|
32 |
output_text = gr.outputs.Textbox()
|
33 |
|
34 |
gr.Interface(fn=predict, inputs=input_image, outputs=output_text).launch()
|