Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
@@ -85,18 +85,18 @@ def run_once(state):
|
|
85 |
if questions_data is None or len(questions_data) == 0:
|
86 |
return "No questions found or failed to load.", None
|
87 |
|
88 |
-
question = questions_data[
|
89 |
question_text = question["question"]
|
90 |
task_id = question["task_id"]
|
91 |
print(f"\nTask ID: {task_id}")
|
92 |
print(f"Question: {question_text}")
|
93 |
|
94 |
-
try:
|
95 |
-
|
96 |
-
|
97 |
-
|
98 |
-
except Exception as e:
|
99 |
-
|
100 |
|
101 |
|
102 |
|
|
|
85 |
if questions_data is None or len(questions_data) == 0:
|
86 |
return "No questions found or failed to load.", None
|
87 |
|
88 |
+
question = questions_data[1]
|
89 |
question_text = question["question"]
|
90 |
task_id = question["task_id"]
|
91 |
print(f"\nTask ID: {task_id}")
|
92 |
print(f"Question: {question_text}")
|
93 |
|
94 |
+
# try:
|
95 |
+
# answer = agent_codeagent(question_text)
|
96 |
+
# output = f"Answer to task {task_id}:\n{answer}"
|
97 |
+
# return output, output
|
98 |
+
# except Exception as e:
|
99 |
+
# return f"Error running agent: {e}", None
|
100 |
|
101 |
|
102 |
|