Spaces:
Running
Running
Update app.py
Browse files
app.py
CHANGED
|
@@ -263,7 +263,7 @@ def rag_pdf(question: str, chat_history: list, session_id: str = "default"):
|
|
| 263 |
response_text += f"{i}. {ref}\n"
|
| 264 |
|
| 265 |
file_paths = [
|
| 266 |
-
os.path.realpath(os.path.join(
|
| 267 |
for src in unique_sources
|
| 268 |
]
|
| 269 |
return response_text, file_paths
|
|
@@ -346,7 +346,7 @@ def rag_pdf_query_rewrite(question: str, history: list):
|
|
| 346 |
response_text += f"{i}. {ref}\n"
|
| 347 |
|
| 348 |
file_paths = [
|
| 349 |
-
os.path.realpath(os.path.join(
|
| 350 |
for src in unique_sources
|
| 351 |
]
|
| 352 |
|
|
|
|
| 263 |
response_text += f"{i}. {ref}\n"
|
| 264 |
|
| 265 |
file_paths = [
|
| 266 |
+
os.path.realpath(os.path.join(DESTINATION_FOLDER, src))
|
| 267 |
for src in unique_sources
|
| 268 |
]
|
| 269 |
return response_text, file_paths
|
|
|
|
| 346 |
response_text += f"{i}. {ref}\n"
|
| 347 |
|
| 348 |
file_paths = [
|
| 349 |
+
os.path.realpath(os.path.join(DESTINATION_FOLDER, src))
|
| 350 |
for src in unique_sources
|
| 351 |
]
|
| 352 |
|