JoJosmin commited on
Commit
56c06e8
·
verified ·
1 Parent(s): 7e9dec5

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +0 -6
app.py CHANGED
@@ -97,12 +97,6 @@ def find_similar_images(query_embedding, collection, top_k=5):
97
 
98
  # 메타데이터 가져옴
99
  all_data = collection.get(include=['metadatas'])['metadatas']
100
- st.write(f"Embeddings found: {len(all_data['embeddings'])}")
101
- st.write(f"Metadatas found: {len(all_data['metadatas'])}")
102
- st.write(f"Documents found: {len(all_data['documents'])}")
103
-
104
- # 벡터 ID를 함께 가져와서 확인
105
- vector_data = collection.get(include=['embeddings', 'metadatas', 'ids'])
106
 
107
  top_metadatas = [all_data[idx] for idx in top_indices]
108
 
 
97
 
98
  # 메타데이터 가져옴
99
  all_data = collection.get(include=['metadatas'])['metadatas']
 
 
 
 
 
 
100
 
101
  top_metadatas = [all_data[idx] for idx in top_indices]
102