Spaces:
Runtime error
Runtime error
Update app.py
Browse files
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.
|
69 |
-
outputs = gr.
|
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."
|