Spaces:
Runtime error
Runtime error
Commit
·
38e3100
1
Parent(s):
9ae662c
fix bug on examples
Browse files
app.py
CHANGED
@@ -21,8 +21,8 @@ with open(emb_filename, 'rb') as fIn:
|
|
21 |
|
22 |
|
23 |
def search_text(query, top_k=1):
|
24 |
-
""""
|
25 |
-
|
26 |
Args:
|
27 |
query ([string]): [query you want search for]
|
28 |
top_k (int, optional): [Amount of images o return]. Defaults to 1.
|
@@ -46,6 +46,7 @@ def search_text(query, top_k=1):
|
|
46 |
image.append(object)
|
47 |
|
48 |
return image
|
|
|
49 |
|
50 |
iface = gr.Interface(
|
51 |
title = "Text to Image using CLIP Model",
|
@@ -60,5 +61,5 @@ iface = gr.Interface(
|
|
60 |
[("Paris during night."), 1],
|
61 |
[("A cute kangaroo"), 5],
|
62 |
[("Dois cachorros"), 2],
|
63 |
-
[("un homme marchant sur le parc")
|
64 |
).launch(debug=True)
|
|
|
21 |
|
22 |
|
23 |
def search_text(query, top_k=1):
|
24 |
+
"""" Search an image based on the text query.
|
25 |
+
|
26 |
Args:
|
27 |
query ([string]): [query you want search for]
|
28 |
top_k (int, optional): [Amount of images o return]. Defaults to 1.
|
|
|
46 |
image.append(object)
|
47 |
|
48 |
return image
|
49 |
+
|
50 |
|
51 |
iface = gr.Interface(
|
52 |
title = "Text to Image using CLIP Model",
|
|
|
61 |
[("Paris during night."), 1],
|
62 |
[("A cute kangaroo"), 5],
|
63 |
[("Dois cachorros"), 2],
|
64 |
+
[("un homme marchant sur le parc"), 3]]
|
65 |
).launch(debug=True)
|