dominguezdaniel
commited on
Update app.py
Browse files
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="
|
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()
|