Update app.py
Browse files
app.py
CHANGED
|
@@ -14,7 +14,7 @@ def classify_image(img):
|
|
| 14 |
|
| 15 |
# %% ../hugging-space-model-app.ipynb 11
|
| 16 |
image = gr.components.Image()
|
| 17 |
-
label = gr.components.Label(show_label=True)
|
| 18 |
examples = ['afraid.jpg','anger.jpg','happyface.jpg','disgust.jpg','sadface.webp']
|
| 19 |
|
| 20 |
intf = gr.Interface(fn=classify_image, inputs=image, outputs=label, examples=examples)
|
|
|
|
| 14 |
|
| 15 |
# %% ../hugging-space-model-app.ipynb 11
|
| 16 |
image = gr.components.Image()
|
| 17 |
+
label = gr.components.Label(show_label=True,num_top_classes=3)
|
| 18 |
examples = ['afraid.jpg','anger.jpg','happyface.jpg','disgust.jpg','sadface.webp']
|
| 19 |
|
| 20 |
intf = gr.Interface(fn=classify_image, inputs=image, outputs=label, examples=examples)
|