Spaces:
Running
Running
Update app.py
Browse files
app.py
CHANGED
@@ -40,9 +40,13 @@ class BasicAgent:
|
|
40 |
```{}```
|
41 |
"""
|
42 |
print(f"Agent received question (first 50 chars): {question[:50]}...")
|
43 |
-
|
44 |
-
print(
|
45 |
-
|
|
|
|
|
|
|
|
|
46 |
|
47 |
def run_and_submit_all( profile: gr.OAuthProfile | None):
|
48 |
"""
|
|
|
40 |
```{}```
|
41 |
"""
|
42 |
print(f"Agent received question (first 50 chars): {question[:50]}...")
|
43 |
+
print(type(prompt))
|
44 |
+
print(type(question))
|
45 |
+
print(type(prompt + question))
|
46 |
+
answer = self.agent.run(prompt + question))
|
47 |
+
print(type(answer))
|
48 |
+
print(f"Agent returning answer: {str(answer)}")
|
49 |
+
return str(answer).replace("FINAL ANSWER:", "").strip()
|
50 |
|
51 |
def run_and_submit_all( profile: gr.OAuthProfile | None):
|
52 |
"""
|