Zeros66 commited on
Commit
a0b015a
·
verified ·
1 Parent(s): 95a3546

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -2
app.py CHANGED
@@ -106,9 +106,9 @@ class BasicAgent:
106
  if self.gaia_agent:
107
  try:
108
  # Process the question using the GAIA agent
109
- # answer = self.gaia_agent.answer_question(question)
110
  print(f"Agent generated answer: {answer[:50]}..." if len(answer) > 50 else f"Agent generated answer: {answer}")
111
- return "OK" #answer
112
  except Exception as e:
113
  print(f"Error processing question: {e}")
114
  # Fall back to a simple response on error
 
106
  if self.gaia_agent:
107
  try:
108
  # Process the question using the GAIA agent
109
+ answer = self.gaia_agent.answer_question(question)
110
  print(f"Agent generated answer: {answer[:50]}..." if len(answer) > 50 else f"Agent generated answer: {answer}")
111
+ return answer
112
  except Exception as e:
113
  print(f"Error processing question: {e}")
114
  # Fall back to a simple response on error