tcy6 commited on
Commit
2120b3a
·
1 Parent(s): b65fc25

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -1
app.py CHANGED
@@ -139,7 +139,7 @@ def retrieve_gradio(knowledge_base: str, query: str, topk: int):
139
 
140
  topk_values_np = topk_values.cpu().numpy()
141
 
142
- topk_doc_ids_np = topk_doc_ids.cpu().numpy()
143
 
144
  similarities_np = similarities.cpu().numpy()
145
  print(f"topk_doc_ids_np: {topk_doc_ids_np}, topk_values_np: {topk_values_np}")
 
139
 
140
  topk_values_np = topk_values.cpu().numpy()
141
 
142
+ topk_doc_ids_np = topk_doc_ids.squeeze().cpu().numpy()
143
 
144
  similarities_np = similarities.cpu().numpy()
145
  print(f"topk_doc_ids_np: {topk_doc_ids_np}, topk_values_np: {topk_values_np}")