Spaces:
Sleeping
Sleeping
muqtasid87
commited on
Commit
·
e58c620
1
Parent(s):
5c2f39f
Update app.py
Browse files
app.py
CHANGED
@@ -13,5 +13,5 @@ def predict(img):
|
|
13 |
pred,pred_idx,probs = learn.predict(img)
|
14 |
return {labels[i]: float(probs[i]) for i in range(len(labels))}
|
15 |
|
16 |
-
gr.Interface(fn=predict,
|
17 |
iface.launch()
|
|
|
13 |
pred,pred_idx,probs = learn.predict(img)
|
14 |
return {labels[i]: float(probs[i]) for i in range(len(labels))}
|
15 |
|
16 |
+
gr.Interface(fn=predict,inputs="image",outputs="label").launch()
|
17 |
iface.launch()
|