Spaces:
Running
Running
Update app.py
Browse files
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}")
|