Update app.py
Browse files
app.py
CHANGED
|
@@ -26,8 +26,6 @@ class BasicAgent:
|
|
| 26 |
|
| 27 |
self.agent = CodeAgent(model=model, tools=my_tool_list, max_steps=6)
|
| 28 |
|
| 29 |
-
|
| 30 |
-
|
| 31 |
def __call__(self, question: str) -> str:
|
| 32 |
print(f"Agent received question: {question[:80]}...")
|
| 33 |
try:
|
|
@@ -89,7 +87,7 @@ def run_and_submit_all( profile: gr.OAuthProfile | None):
|
|
| 89 |
results_log = []
|
| 90 |
answers_payload = []
|
| 91 |
print(f"Running agent on {len(questions_data)} questions...")
|
| 92 |
-
for item in questions_data:
|
| 93 |
task_id = item.get("task_id")
|
| 94 |
question_text = item.get("question")
|
| 95 |
if not task_id or question_text is None:
|
|
|
|
| 26 |
|
| 27 |
self.agent = CodeAgent(model=model, tools=my_tool_list, max_steps=6)
|
| 28 |
|
|
|
|
|
|
|
| 29 |
def __call__(self, question: str) -> str:
|
| 30 |
print(f"Agent received question: {question[:80]}...")
|
| 31 |
try:
|
|
|
|
| 87 |
results_log = []
|
| 88 |
answers_payload = []
|
| 89 |
print(f"Running agent on {len(questions_data)} questions...")
|
| 90 |
+
for item in questions_data[:3]:
|
| 91 |
task_id = item.get("task_id")
|
| 92 |
question_text = item.get("question")
|
| 93 |
if not task_id or question_text is None:
|