Dharma20 commited on
Commit
3d439cd
·
verified ·
1 Parent(s): 5d44c66

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -1
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)