aubrigene949 commited on
Commit
065fd8f
·
verified ·
1 Parent(s): 6948d83

Update app.py

Browse files

Replaced fixed_answer with running the agent

Files changed (1) hide show
  1. app.py +3 -3
app.py CHANGED
@@ -39,9 +39,9 @@ class BasicAgent:
39
  print("BasicAgent initialized.")
40
  def __call__(self, question: str) -> str:
41
  print(f"Agent received question (first 50 chars): {question[:50]}...")
42
- fixed_answer = "This is a default answer."
43
- # fixed_answer = agent.run(question)
44
- print(f"Agent answered How are you today as: {self.agent.run('How are you today?')}")
45
  print(f"Agent returning fixed answer: {fixed_answer}")
46
  return fixed_answer
47
 
 
39
  print("BasicAgent initialized.")
40
  def __call__(self, question: str) -> str:
41
  print(f"Agent received question (first 50 chars): {question[:50]}...")
42
+ # fixed_answer = "This is a default answer."
43
+ fixed_answer = self.agent.run(question)
44
+ # print(f"Agent answered How are you today as: {self.agent.run('How are you today?')}")
45
  print(f"Agent returning fixed answer: {fixed_answer}")
46
  return fixed_answer
47