abhivsh commited on
Commit
99ada8e
·
verified ·
1 Parent(s): 508c917

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -2
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(folder_name, src))
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(folder_name, src))
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