Update app.py
Browse files
app.py
CHANGED
@@ -43,7 +43,7 @@ def inference(input_image):
|
|
43 |
return result
|
44 |
|
45 |
inputs = gr.components.Image(type='pil')
|
46 |
-
outputs = gr.components.Label(
|
47 |
|
48 |
title = "ALEXNET"
|
49 |
description = "Gradio demo for Alexnet, the 2012 ImageNet winner achieved a top-5 error of 15.3%, more than 10.8 percentage points lower than that of the runner up. To use it, simply upload your image, or click one of the examples to load them. Read more at the links below."
|
|
|
43 |
return result
|
44 |
|
45 |
inputs = gr.components.Image(type='pil')
|
46 |
+
outputs = gr.components.Label(num_top_classes=5)
|
47 |
|
48 |
title = "ALEXNET"
|
49 |
description = "Gradio demo for Alexnet, the 2012 ImageNet winner achieved a top-5 error of 15.3%, more than 10.8 percentage points lower than that of the runner up. To use it, simply upload your image, or click one of the examples to load them. Read more at the links below."
|