Spaces:
Runtime error
Runtime error
Update main_class.py
Browse files- main_class.py +1 -1
main_class.py
CHANGED
@@ -82,7 +82,7 @@ class PDFChatBot:
|
|
82 |
# Generate a response and write to memory
|
83 |
def generate_response(self, history, query, path):
|
84 |
#if not self.processed:
|
85 |
-
|
86 |
#self.processed = True
|
87 |
result = self.final_agent.invoke({'input': query, 'chat_history': self.chat_history})['output']
|
88 |
self.chat_history.extend((query, result))
|
|
|
82 |
# Generate a response and write to memory
|
83 |
def generate_response(self, history, query, path):
|
84 |
#if not self.processed:
|
85 |
+
self.process_file(path)
|
86 |
#self.processed = True
|
87 |
result = self.final_agent.invoke({'input': query, 'chat_history': self.chat_history})['output']
|
88 |
self.chat_history.extend((query, result))
|