more examples
Browse files- app.py +3 -1
- colombia.jpg +0 -0
- 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