Spaces:
Runtime error
Runtime error
Upload app.py
Browse files
app.py
CHANGED
@@ -24,7 +24,7 @@ def classify_image(inp):
|
|
24 |
confidences = {labels[i]: float(prediction[i]) for i in range(1000)}
|
25 |
return confidences
|
26 |
|
27 |
-
gr.Interface(fn=classify_image,
|
28 |
inputs=gr.inputs.Image(shape=(224, 224)),
|
29 |
-
outputs=gr.outputs.Label(num_top_classes=3)
|
30 |
-
|
|
|
24 |
confidences = {labels[i]: float(prediction[i]) for i in range(1000)}
|
25 |
return confidences
|
26 |
|
27 |
+
iface = gr.Interface(fn=classify_image,
|
28 |
inputs=gr.inputs.Image(shape=(224, 224)),
|
29 |
+
outputs=gr.outputs.Label(num_top_classes=3)).launch()
|
30 |
+
iface.launch()
|