wolktm commited on
Commit
01633bd
1 Parent(s): 27b29bd
Files changed (3) hide show
  1. app.py +4 -1
  2. mig.jpg +0 -0
  3. su.jpg +0 -0
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
- gr.Interface(fn=predict,inputs="image", outputs="label").launch()
 
 
 
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