Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
@@ -27,16 +27,16 @@ def inference(input_img=None, input_text=None):
|
|
27 |
|
28 |
title = "CLIP OpenAI model"
|
29 |
description = "A simple Gradio interface to find similarity between images and text"
|
30 |
-
text_examples = ["A man and a dog, A man wearing a blue coat with a dog inside",
|
31 |
-
"Train tracks and a train, A dog playing in the field",
|
32 |
"An outdoor seating glass box, A movie theater",
|
33 |
-
"A building, A building and multiple cars on the road",
|
34 |
-
"A living area",
|
35 |
-
"A dining room, A football stadium",
|
36 |
-
"A red car",
|
37 |
-
"A chair and a book, A
|
38 |
-
"A man and a horse",
|
39 |
-
"A man and a horse"
|
40 |
]
|
41 |
examples = [['examples/test_'+str(i)+'.jpg', text_examples[i]] for i in range(10)]
|
42 |
|
|
|
27 |
|
28 |
title = "CLIP OpenAI model"
|
29 |
description = "A simple Gradio interface to find similarity between images and text"
|
30 |
+
text_examples = ["A man and a dog, A man wearing a blue coat with a dog inside",
|
31 |
+
"Train tracks and a train, A dog playing in the field",
|
32 |
"An outdoor seating glass box, A movie theater",
|
33 |
+
"A building, A building and multiple cars on the road",
|
34 |
+
"A living area, Planet earth",
|
35 |
+
"A dining room, A football stadium",
|
36 |
+
"A red car, A yellow car",
|
37 |
+
"A chair and a book, A building falling",
|
38 |
+
"A man and a horse, A child playing with a dog",
|
39 |
+
"A man and a horse, A child playing with a dog"
|
40 |
]
|
41 |
examples = [['examples/test_'+str(i)+'.jpg', text_examples[i]] for i in range(10)]
|
42 |
|