aubrigene949 commited on
Commit
fcbb7c0
·
verified ·
1 Parent(s): dab93ba

Update app.py

Browse files

Inserted a print test and went back to default answer to troubleshoot

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