Spaces:
Runtime error
Runtime error
Kelly Nicholes commited on
Commit ·
8f37a0a
1
Parent(s): a2d2025
Keep fumbling around
Browse files
app.py
CHANGED
|
@@ -11,6 +11,6 @@ def predict(img):
|
|
| 11 |
pred,pred_idx,probs = learn.predict(img)
|
| 12 |
return {labels[i]: float(probs[i]) for i in range(len(labels))}
|
| 13 |
|
| 14 |
-
demo = gr.Interface(
|
| 15 |
demo.launch()
|
| 16 |
# gr.Interface(fn=predict, inputs=gr.Image(shape=(512, 512)), outputs=gr.Label(num_top_classes=3)).launch(share=True)
|
|
|
|
| 11 |
pred,pred_idx,probs = learn.predict(img)
|
| 12 |
return {labels[i]: float(probs[i]) for i in range(len(labels))}
|
| 13 |
|
| 14 |
+
demo = gr.Interface(predict, gr.Image(), "image")
|
| 15 |
demo.launch()
|
| 16 |
# gr.Interface(fn=predict, inputs=gr.Image(shape=(512, 512)), outputs=gr.Label(num_top_classes=3)).launch(share=True)
|