dominguezdaniel commited on
Commit
b4ae864
1 Parent(s): 9b45e64

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -1
app.py CHANGED
@@ -9,7 +9,7 @@ def predict(image):
9
 
10
  title = "Image Rocignition"
11
  description = "A demo that recognizes and classifies images using the model from Hugging Face's 'google/vit-base-patch16-224'."
12
- input_component = gr.Image(type="pil", label="Upload an image here")
13
  output_component = gr.Label(num_top_classes=3)
14
 
15
  gr.Interface(fn=predict, inputs=input_component, outputs=output_component, title=title, description=description).launch()
 
9
 
10
  title = "Image Rocignition"
11
  description = "A demo that recognizes and classifies images using the model from Hugging Face's 'google/vit-base-patch16-224'."
12
+ input_component = gr.Image(type="filepath", label="Upload an image here")
13
  output_component = gr.Label(num_top_classes=3)
14
 
15
  gr.Interface(fn=predict, inputs=input_component, outputs=output_component, title=title, description=description).launch()