Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
@@ -182,8 +182,8 @@ elif st.session_state.step == 'show_results':
|
|
182 |
st.image(original_image, caption="Original Image", use_column_width=True)
|
183 |
|
184 |
# 세그먼트된 이미지에서 임베딩 추출
|
185 |
-
|
186 |
-
query_embedding = get_image_embedding(st.session_state.segmented_image)
|
187 |
similar_images = find_similar_images(query_embedding, collection)
|
188 |
|
189 |
st.subheader("Similar Items:")
|
|
|
182 |
st.image(original_image, caption="Original Image", use_column_width=True)
|
183 |
|
184 |
# 세그먼트된 이미지에서 임베딩 추출
|
185 |
+
query_embedding = get_segmented_embedding(st.session_state.query_image, st.session_state.segmented_image)
|
186 |
+
#query_embedding = get_image_embedding(st.session_state.segmented_image)
|
187 |
similar_images = find_similar_images(query_embedding, collection)
|
188 |
|
189 |
st.subheader("Similar Items:")
|