app.py
CHANGED
@@ -13,7 +13,10 @@ def predict(img):
|
|
13 |
return {labels[i]: float(probs[i]) for i in range(len(labels))}
|
14 |
|
15 |
|
16 |
-
|
|
|
|
|
|
|
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 |
+
examples = ['mig.jpg', 'su.jpg']
|
17 |
+
|
18 |
+
gr.Interface(fn=predict,inputs="image", outputs="label", title="Mig-29 or Su-27", examples=examples, interpretation=interpretation,enable_queue=True).launch()
|
19 |
+
|
20 |
|
21 |
# iface = gr.Interface(fn=greet, inputs="text", outputs="text")
|
22 |
# iface.launch()
|
mig.jpg
ADDED
su.jpg
ADDED