Update src/pdfchatbot.py
Browse files- src/pdfchatbot.py +1 -1
src/pdfchatbot.py
CHANGED
@@ -173,7 +173,7 @@ class PDFChatBot:
|
|
173 |
return history
|
174 |
|
175 |
# Function to download conversation history
|
176 |
-
def
|
177 |
with open('chat_history.csv', 'w', newline='') as file:
|
178 |
writer = csv.writer(file)
|
179 |
writer.writerow(["User Input", "Bot Response"])
|
|
|
173 |
return history
|
174 |
|
175 |
# Function to download conversation history
|
176 |
+
def download_chat(history,text):
|
177 |
with open('chat_history.csv', 'w', newline='') as file:
|
178 |
writer = csv.writer(file)
|
179 |
writer.writerow(["User Input", "Bot Response"])
|