Spaces:
Runtime error
Runtime error
Update parameters
Browse files
app.py
CHANGED
|
@@ -52,9 +52,9 @@ def predict_image(image):
|
|
| 52 |
|
| 53 |
|
| 54 |
image = gr.inputs.Image(shape=(256, 256))
|
| 55 |
-
label = gr.outputs.Label()
|
| 56 |
title = "Charts Classifier"
|
| 57 |
-
description = "<p align=center>
|
| 58 |
|
| 59 |
iface = gr.Interface(fn=predict_image,
|
| 60 |
inputs=image,
|
|
|
|
| 52 |
|
| 53 |
|
| 54 |
image = gr.inputs.Image(shape=(256, 256))
|
| 55 |
+
label = gr.outputs.Label(num_top_classes=5)
|
| 56 |
title = "Charts Classifier"
|
| 57 |
+
description = "<p align=center>This is a demo to classify charts or diagrams out of 28 categories. Upload or drop any images to see the results.</p>"
|
| 58 |
|
| 59 |
iface = gr.Interface(fn=predict_image,
|
| 60 |
inputs=image,
|