Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
@@ -19,4 +19,4 @@ def predict(img):
|
|
19 |
pred,pred_idx,probs = learn.predict(img)
|
20 |
return {labels[i]: float(probs[i]) for i in range(len(labels))}
|
21 |
|
22 |
-
gr.Interface(fn=predict, inputs=gr.Image(shape=(512, 512)), outputs=gr.Label(num_top_classes=3)).launch(share=
|
|
|
19 |
pred,pred_idx,probs = learn.predict(img)
|
20 |
return {labels[i]: float(probs[i]) for i in range(len(labels))}
|
21 |
|
22 |
+
gr.Interface(fn=predict, inputs=gr.Image(shape=(512, 512)), outputs=gr.Label(num_top_classes=3)).launch(share=False)
|