Spaces:
Runtime error
Runtime error
Update app.py
Browse files
app.py
CHANGED
@@ -16,4 +16,4 @@ def predict(inp):
|
|
16 |
confidences = {labels[i]: float(prediction[i]) for i in range(1000)}
|
17 |
return confidences
|
18 |
|
19 |
-
|
|
|
16 |
confidences = {labels[i]: float(prediction[i]) for i in range(1000)}
|
17 |
return confidences
|
18 |
|
19 |
+
gr.Interface(fn=predict, inputs = gr.inputs.Image(type="pil"), outputs = gr.outputs.Label(num_top_classes=5)).launch()
|