Spaces:
Sleeping
Sleeping
tensorkelechi
commited on
Update app.py
Browse files
app.py
CHANGED
@@ -53,10 +53,10 @@ if embedded_data is not None:
|
|
53 |
|
54 |
search_term = stl.text_input("Text description/search for image")
|
55 |
|
56 |
-
if search_term:
|
57 |
-
|
58 |
-
|
59 |
-
|
60 |
|
61 |
try:
|
62 |
for count, score, image in tqdm(zip(range(len(ret_images)), scores, ret_images)):
|
|
|
53 |
|
54 |
search_term = stl.text_input("Text description/search for image")
|
55 |
|
56 |
+
if search_term:
|
57 |
+
with stl.spinner("retrieving images with description.."):
|
58 |
+
scores, ret_images = text_search.get_similar_images(search_term, k_images=4)
|
59 |
+
stl.success(f"sucessfully retrieved {len(ret_images)} images")
|
60 |
|
61 |
try:
|
62 |
for count, score, image in tqdm(zip(range(len(ret_images)), scores, ret_images)):
|