Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
@@ -39,18 +39,11 @@ def inference(query):
|
|
39 |
plt.savefig("img.png")
|
40 |
return "img.png"
|
41 |
|
42 |
-
examples= ['a family standing next to the ocean on a sandy beach with a surf board',
|
43 |
-
'a group of people sitting in an audience with pen and paper',
|
44 |
-
'a couple of cows that are in some grass'
|
45 |
-
]
|
46 |
-
|
47 |
gr.Interface(
|
48 |
fn=inference,
|
49 |
title="Natural language image search with a Dual Encoder",
|
50 |
description = "Implementation of a dual encoder model for retrieving images that match natural language queries (Note: for demo purposes, only 1k images were used as search space)",
|
51 |
inputs="text",
|
52 |
-
examples=examples,
|
53 |
outputs="image",
|
54 |
cache_examples=False,
|
55 |
-
|
56 |
-
).launch(debug=True, enable_queue=True)
|
|
|
39 |
plt.savefig("img.png")
|
40 |
return "img.png"
|
41 |
|
|
|
|
|
|
|
|
|
|
|
42 |
gr.Interface(
|
43 |
fn=inference,
|
44 |
title="Natural language image search with a Dual Encoder",
|
45 |
description = "Implementation of a dual encoder model for retrieving images that match natural language queries (Note: for demo purposes, only 1k images were used as search space)",
|
46 |
inputs="text",
|
|
|
47 |
outputs="image",
|
48 |
cache_examples=False,
|
49 |
+
).launch(debug=True, enable_queue=True)
|
|