Spaces:
Runtime error
Runtime error
Update main_class.py
Browse files- main_class.py +1 -1
main_class.py
CHANGED
@@ -81,7 +81,7 @@ class PDFChatBot:
|
|
81 |
|
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']
|
|
|
81 |
|
82 |
# Generate a response and write to memory
|
83 |
def generate_response(self, history, query, path):
|
84 |
+
#if not self.processed: #processing files after every query, HF Spaces has a memory of other documents ?
|
85 |
self.process_file(path)
|
86 |
#self.processed = True
|
87 |
result = self.final_agent.invoke({'input': query, 'chat_history': self.chat_history})['output']
|