Spaces:
Sleeping
Sleeping
Update agent.py
Browse files
agent.py
CHANGED
|
@@ -159,7 +159,7 @@ class BasicAgent:
|
|
| 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(
|
| 163 |
# fixed_answer = "This is a default answer."
|
| 164 |
print(f"Agent returning fixed answer: {fixed_answer}")
|
| 165 |
return fixed_answer
|
|
|
|
| 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(question)
|
| 163 |
# fixed_answer = "This is a default answer."
|
| 164 |
print(f"Agent returning fixed answer: {fixed_answer}")
|
| 165 |
return fixed_answer
|