Dabs commited on
Commit
057813a
1 Parent(s): 1ffc519

more examples

Browse files
Files changed (3) hide show
  1. app.py +3 -1
  2. colombia.jpg +0 -0
  3. germany.jpg +0 -0
app.py CHANGED
@@ -15,6 +15,8 @@ def shot(image, labels_text):
15
  hypothesis_template= "This is a photo of a {}")
16
  return {dic["label"]: dic["score"] for dic in res}
17
 
18
- iface = gr.Interface(shot, ["image", "text"], "label", examples=[["dog.jpg", "dog,cat,bird"]])
 
 
19
 
20
  iface.launch()
 
15
  hypothesis_template= "This is a photo of a {}")
16
  return {dic["label"]: dic["score"] for dic in res}
17
 
18
+ iface = gr.Interface(shot, ["image", "text"], "label", examples=[["dog.jpg", "dog,cat,bird"],
19
+ ["germany.jpg", "germany,belgium,colombia"],
20
+ ["colombia.jpg", "germany,belgium,colombia"]])
21
 
22
  iface.launch()
colombia.jpg ADDED
germany.jpg ADDED