tcy6 commited on
Commit
dc55a3a
1 Parent(s): 4b393ca

Update app.py

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