fix gradio label unexpected keyword error
Browse files
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(
|
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."
|