JoJosmin commited on
Commit
18bf384
โ€ข
1 Parent(s): a91719a

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +0 -5
app.py CHANGED
@@ -172,11 +172,6 @@ elif st.session_state.step == 'show_results':
172
  # Get the embedding of the segmented image
173
  query_embedding = get_image_embedding(st.session_state.segmented_image) # Use the segmented image from session state
174
 
175
- # ์ฟผ๋ฆฌ ์ž„๋ฒ ๋”ฉ์ด ์ •์ƒ์ ์œผ๋กœ ์ƒ์„ฑ๋˜์—ˆ๋Š”์ง€ ํ™•์ธ
176
- if query_embedding is None or len(query_embedding) == 0:
177
- st.error("Failed to generate query embedding.")
178
- else:
179
- st.write("Query embedding generated successfully.")
180
  similar_images = find_similar_images(query_embedding, collection)
181
 
182
  st.subheader("Similar Items:")
 
172
  # Get the embedding of the segmented image
173
  query_embedding = get_image_embedding(st.session_state.segmented_image) # Use the segmented image from session state
174
 
 
 
 
 
 
175
  similar_images = find_similar_images(query_embedding, collection)
176
 
177
  st.subheader("Similar Items:")