Spaces:
Sleeping
Sleeping
updated app to remove share
Browse files
app.py
CHANGED
|
@@ -9,5 +9,5 @@ def predict(img):
|
|
| 9 |
pred,pred_idx,probs = learner.predict(img)
|
| 10 |
return {labels[i]: float(probs[i]) for i in range(len(labels))}
|
| 11 |
|
| 12 |
-
gr.Interface(fn=predict, inputs=gr.inputs.Image(shape=(512, 512)), outputs=gr.outputs.Label(num_top_classes=3),examples=examples).launch(
|
| 13 |
|
|
|
|
| 9 |
pred,pred_idx,probs = learner.predict(img)
|
| 10 |
return {labels[i]: float(probs[i]) for i in range(len(labels))}
|
| 11 |
|
| 12 |
+
gr.Interface(fn=predict, inputs=gr.inputs.Image(shape=(512, 512)), outputs=gr.outputs.Label(num_top_classes=3),examples=examples).launch()
|
| 13 |
|