Spaces:
Sleeping
Sleeping
Update agent.py
Browse files
agent.py
CHANGED
|
@@ -158,7 +158,7 @@ class BasicAgent:
|
|
| 158 |
print(f"Agent received question (first 50 chars): {question[:50]}...")
|
| 159 |
# response = self.agent_exe.invoke({"input": f"Question: {question}"})
|
| 160 |
# fixed_answer = response['message'][-1].content
|
| 161 |
-
|
| 162 |
fixed_answer = self.agent.run(f"Answer this question: {question}")
|
| 163 |
# fixed_answer = "This is a default answer."
|
| 164 |
print(f"Agent returning fixed answer: {fixed_answer}")
|
|
|
|
| 158 |
print(f"Agent received question (first 50 chars): {question[:50]}...")
|
| 159 |
# response = self.agent_exe.invoke({"input": f"Question: {question}"})
|
| 160 |
# fixed_answer = response['message'][-1].content
|
| 161 |
+
time.sleep(15)
|
| 162 |
fixed_answer = self.agent.run(f"Answer this question: {question}")
|
| 163 |
# fixed_answer = "This is a default answer."
|
| 164 |
print(f"Agent returning fixed answer: {fixed_answer}")
|