Spaces:
Runtime error
Runtime error
Commit
·
3b76468
1
Parent(s):
56d5802
Update app.py
Browse files
app.py
CHANGED
|
@@ -28,5 +28,6 @@ def predict(inp):
|
|
| 28 |
confidences = {classes[i]: float(prediction[i]) for i in range(4)}
|
| 29 |
return confidences
|
| 30 |
|
|
|
|
| 31 |
# gr.Interface(fn=predict, inputs=gr.Image(type="pil"),outputs=gr.Label(num_top_classes=4),title='Image classification',interpretation='default').launch(debug='True')
|
| 32 |
gr.Interface(predict, gr.inputs.Image(type="pil"),outputs='label').launch(debug='True')
|
|
|
|
| 28 |
confidences = {classes[i]: float(prediction[i]) for i in range(4)}
|
| 29 |
return confidences
|
| 30 |
|
| 31 |
+
|
| 32 |
# gr.Interface(fn=predict, inputs=gr.Image(type="pil"),outputs=gr.Label(num_top_classes=4),title='Image classification',interpretation='default').launch(debug='True')
|
| 33 |
gr.Interface(predict, gr.inputs.Image(type="pil"),outputs='label').launch(debug='True')
|