Update app.py
Browse files
app.py
CHANGED
@@ -118,7 +118,7 @@ def upload_pdf(pdf_file):
|
|
118 |
file_path = pdf_file.name # This is the full path, e.g., /tmp/tmp1234.pdf
|
119 |
pdf_chatbot.memory.clear() # Clears chat history
|
120 |
pdf_chatbot.load_and_process_pdf(file_path)
|
121 |
-
return
|
122 |
|
123 |
|
124 |
|
|
|
118 |
file_path = pdf_file.name # This is the full path, e.g., /tmp/tmp1234.pdf
|
119 |
pdf_chatbot.memory.clear() # Clears chat history
|
120 |
pdf_chatbot.load_and_process_pdf(file_path)
|
121 |
+
return file_path
|
122 |
|
123 |
|
124 |
|