tensorkelechi commited on
Commit
0aae610
·
verified ·
1 Parent(s): 5064dd2

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +4 -4
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
- 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)):
 
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)):