app.py
CHANGED
@@ -13,7 +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,
|
17 |
|
18 |
# iface = gr.Interface(fn=greet, inputs="text", outputs="text")
|
19 |
# iface.launch()
|
|
|
13 |
return {labels[i]: float(probs[i]) for i in range(len(labels))}
|
14 |
|
15 |
|
16 |
+
gr.Interface(fn=predict,inputs="image", outputs="label").launch()
|
17 |
|
18 |
# iface = gr.Interface(fn=greet, inputs="text", outputs="text")
|
19 |
# iface.launch()
|