coderx7 commited on
Commit
27aa541
1 Parent(s): 5b54b50

fix gradio label unexpected keyword error

Browse files
Files changed (1) hide show
  1. app.py +1 -1
app.py CHANGED
@@ -52,7 +52,7 @@ def inference(input_image):
52
  return result
53
 
54
  inputs = gr.Image(type='pil')
55
- outputs = gr.Label(type="confidences",num_top_classes=5)
56
 
57
  title = "SimpleNet"
58
  description = "Gradio demo for SimpleNet network pre-trained on ImageNet. This demo uses the simplenet_5m_m1 variant. To use it, simply upload your image, or click one of the examples to load them. Read more at the links below."
 
52
  return result
53
 
54
  inputs = gr.Image(type='pil')
55
+ outputs = gr.Label(num_top_classes=5)
56
 
57
  title = "SimpleNet"
58
  description = "Gradio demo for SimpleNet network pre-trained on ImageNet. This demo uses the simplenet_5m_m1 variant. To use it, simply upload your image, or click one of the examples to load them. Read more at the links below."