lxy1122 commited on
Commit
69ff639
·
1 Parent(s): 7c97cba

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -2
app.py CHANGED
@@ -65,8 +65,8 @@ def inference(input_image):
65
  result[categories[top5_catid[i]]] = top5_prob[i].item()
66
  return result
67
 
68
- inputs = gr.inputs.Image(type='pil')
69
- outputs = gr.outputs.Label(type="confidences",num_top_classes=5)
70
 
71
  title = "MOBILENET V2"
72
  description = "Gradio demo for MOBILENET V2, Efficient networks optimized for speed and memory, with residual blocks. To use it, simply upload your image, or click one of the examples to load them. Read more at the links below."
 
65
  result[categories[top5_catid[i]]] = top5_prob[i].item()
66
  return result
67
 
68
+ inputs = gr.Image(type='pil')
69
+ outputs = gr.Label(type="confidences",num_top_classes=5)
70
 
71
  title = "MOBILENET V2"
72
  description = "Gradio demo for MOBILENET V2, Efficient networks optimized for speed and memory, with residual blocks. To use it, simply upload your image, or click one of the examples to load them. Read more at the links below."