Spaces:
Sleeping
Sleeping
Update app.py
Browse files
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 |
-
|
| 145 |
-
print(f"Agent returning
|
| 146 |
-
return
|
| 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):
|