Spaces:
Sleeping
Sleeping
Changed the path of Image files
Browse files
app.py
CHANGED
@@ -18,13 +18,13 @@ def inference(input_img, captions):
|
|
18 |
title = "CLIP Inference: Application using a pretrained CLIP model"
|
19 |
description = "An application using Gradio interface that accepts an image and some captions, and displays a probability score with which each caption describes the image "
|
20 |
|
21 |
-
examples = [["12863.jpg","photo of water, a photo of pizza, photo of a smiling lady, photo of luggage, photo of bank"],
|
22 |
-
["12659.jpg","person riding bicycle, person driving car, photo of traffic lights, photo of vehicle, photo of light"],
|
23 |
-
["12291.jpg","photo of a cat, a photo of a cat sleeping on keyboard, photo of desktop monitor, photo of typing keyboard, photo of computer mouse, photo of water glass"],
|
24 |
-
["12272.jpg","person playing base ball, person holding bat, photo of a net, photo of audience behind net, photo of currency"],
|
25 |
-
["9309.jpg","a photo of cows, a photo of grass, group of cows grazing grass, photo of electric pole, photo of trees"],
|
26 |
-
["3805.jpg","a photo of water, Zebras drinking water, photo of a bird swimming, photo of grass"],
|
27 |
-
["2788.jpg","a photo of a man dropping pigeon feed, a photo of pigeons, photo of a man feeding pigeons, photo of water, people walking, a photo of old building in the background"]
|
28 |
]
|
29 |
|
30 |
demo = gr.Interface(
|
|
|
18 |
title = "CLIP Inference: Application using a pretrained CLIP model"
|
19 |
description = "An application using Gradio interface that accepts an image and some captions, and displays a probability score with which each caption describes the image "
|
20 |
|
21 |
+
examples = [["example_images/12863.jpg","photo of water, a photo of pizza, photo of a smiling lady, photo of luggage, photo of bank"],
|
22 |
+
["example_images/12659.jpg","person riding bicycle, person driving car, photo of traffic lights, photo of vehicle, photo of light"],
|
23 |
+
["example_images/12291.jpg","photo of a cat, a photo of a cat sleeping on keyboard, photo of desktop monitor, photo of typing keyboard, photo of computer mouse, photo of water glass"],
|
24 |
+
["example_images/12272.jpg","person playing base ball, person holding bat, photo of a net, photo of audience behind net, photo of currency"],
|
25 |
+
["example_images/9309.jpg","a photo of cows, a photo of grass, group of cows grazing grass, photo of electric pole, photo of trees"],
|
26 |
+
["example_images/3805.jpg","a photo of water, Zebras drinking water, photo of a bird swimming, photo of grass"],
|
27 |
+
["example_images/2788.jpg","a photo of a man dropping pigeon feed, a photo of pigeons, photo of a man feeding pigeons, photo of water, people walking, a photo of old building in the background"]
|
28 |
]
|
29 |
|
30 |
demo = gr.Interface(
|