Spaces:
Runtime error
Runtime error
klyap
commited on
Commit
•
0f6c47b
1
Parent(s):
884a53b
share=false to enable hosting on hugging face
Browse files
app.py
CHANGED
@@ -15,4 +15,4 @@ def predict(img):
|
|
15 |
pred,pred_idx,probs = learn.predict(img)
|
16 |
return {labels[i]: float(probs[i]) for i in range(len(labels))}
|
17 |
|
18 |
-
gr.Interface(fn=predict, inputs=gr.
|
|
|
15 |
pred,pred_idx,probs = learn.predict(img)
|
16 |
return {labels[i]: float(probs[i]) for i in range(len(labels))}
|
17 |
|
18 |
+
gr.Interface(fn=predict, inputs=gr.Image(shape=(512, 512)), outputs=gr.Label(num_top_classes=3)).launch(share=False)
|