rsant commited on
Commit
5d35c80
·
verified ·
1 Parent(s): 078e17f

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +3 -3
app.py CHANGED
@@ -141,9 +141,9 @@ class BasicAgent:
141
  print("BasicAgent initialized.")
142
  def __call__(self, question: str) -> str:
143
  print(f"Agent received question (first 50 chars): {question[:50]}...")
144
- fixed_answer = "This is a default answer."
145
- print(f"Agent returning fixed answer: {fixed_answer}")
146
- return fixed_answer
147
 
148
 
149
  def run_and_submit_all( profile: gr.OAuthProfile | None):
 
141
  print("BasicAgent initialized.")
142
  def __call__(self, question: str) -> str:
143
  print(f"Agent received question (first 50 chars): {question[:50]}...")
144
+ answer = self.agent.run(question)
145
+ print(f"Agent returning answer: {answer}")
146
+ return answer
147
 
148
 
149
  def run_and_submit_all( profile: gr.OAuthProfile | None):