Spaces:
Sleeping
Sleeping
Update app.py
Browse files
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:")
|