tomaseo2022 commited on
Commit
6e3f070
1 Parent(s): 9dbea80

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -1
app.py CHANGED
@@ -28,7 +28,7 @@ def predict(image):
28
  _, predicted = output.max(1)
29
  return predicted.item()
30
 
31
- input_image = gr.inputs.Image(type="filepath", label="Input")
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()