tensorkelechi commited on
Commit
618a61c
1 Parent(s): 9812662

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -2
app.py CHANGED
@@ -65,9 +65,9 @@ if dataset and stl.button("embed image dataset"):
65
  if embedded_data and embedder:
66
  finder = init_search(embedded_data, embedder)
67
 
68
- search_term = stl.text_input("Text description/search for image")
69
 
70
- if search_term:
71
  with stl.spinner("retrieving images with description.."):
72
  scores, ret_images = get_images_from_description(search_term)
73
  stl.success(f"sucessfully retrieved {len(ret_images)} images")
 
65
  if embedded_data and embedder:
66
  finder = init_search(embedded_data, embedder)
67
 
68
+ search_term = stl.text_input("Text description/search for image")
69
 
70
+ if search_term is not None:
71
  with stl.spinner("retrieving images with description.."):
72
  scores, ret_images = get_images_from_description(search_term)
73
  stl.success(f"sucessfully retrieved {len(ret_images)} images")