Spaces:
Sleeping
Sleeping
Update app.py
Browse files
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 |
-
|
110 |
print(f"Agent generated answer: {answer[:50]}..." if len(answer) > 50 else f"Agent generated answer: {answer}")
|
111 |
-
return
|
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
|