suwonpabby commited on
Commit
3453f97
1 Parent(s): ffef6e5
Files changed (1) hide show
  1. app.py +5 -3
app.py CHANGED
@@ -186,11 +186,13 @@ def make_gen(QA, candidates, top_k, character_type):
186
  batch_size=1,
187
  max_length=8192,
188
  )
189
- print("⭐️")
190
- print(type(candidates))
191
- print(type(candidates[0]))
192
  key_embeddings = embedding_model.encode(candidates)["dense_vecs"]
193
 
 
 
 
 
 
194
  similarity = query_embeddings @ key_embeddings.T
195
  similarity = similarity.squeeze(0)
196
 
 
186
  batch_size=1,
187
  max_length=8192,
188
  )
 
 
 
189
  key_embeddings = embedding_model.encode(candidates)["dense_vecs"]
190
 
191
+ print("candidates:", candidates)
192
+ print(f"query_embeddings type: {type(query_embeddings)}, shape: {query_embeddings.shape}")
193
+ print(f"key_embeddings type: {type(key_embeddings)}, shape: {key_embeddings.shape}")
194
+
195
+
196
  similarity = query_embeddings @ key_embeddings.T
197
  similarity = similarity.squeeze(0)
198