app.py
CHANGED
@@ -13,8 +13,7 @@ def predict(img):
|
|
13 |
return {labels[i]: float(probs[i]) for i in range(len(labels))}
|
14 |
|
15 |
|
16 |
-
gr.Interface(fn=predict, inputs=gr.inputs.Image(shape=(512, 512)), outputs=gr.outputs.Label(num_top_classes=3))
|
17 |
-
.launch()
|
18 |
|
19 |
# iface = gr.Interface(fn=greet, inputs="text", outputs="text")
|
20 |
-
iface.launch()
|
|
|
13 |
return {labels[i]: float(probs[i]) for i in range(len(labels))}
|
14 |
|
15 |
|
16 |
+
gr.Interface(fn=predict, inputs=gr.inputs.Image(shape=(512, 512)), outputs=gr.outputs.Label(num_top_classes=3)).launch()
|
|
|
17 |
|
18 |
# iface = gr.Interface(fn=greet, inputs="text", outputs="text")
|
19 |
+
# iface.launch()
|