remove share True in app.py
Browse files
app.py
CHANGED
@@ -13,6 +13,6 @@ def predict(img):
|
|
13 |
pred, pred_idx, probs = learn_inf.predict(img)
|
14 |
return {labels[i]: float(probs[i]) for i in range(len(labels))}
|
15 |
|
16 |
-
title = "Is this image a cat?"
|
17 |
iface = gr.Interface(fn=predict, inputs=gr.inputs.Image(shape=(512,512)), outputs=gr.outputs.Label(num_top_classes=2), title=title)
|
18 |
-
iface.launch(
|
|
|
13 |
pred, pred_idx, probs = learn_inf.predict(img)
|
14 |
return {labels[i]: float(probs[i]) for i in range(len(labels))}
|
15 |
|
16 |
+
title = "Is this image of a cat?"
|
17 |
iface = gr.Interface(fn=predict, inputs=gr.inputs.Image(shape=(512,512)), outputs=gr.outputs.Label(num_top_classes=2), title=title)
|
18 |
+
iface.launch()
|