Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
@@ -51,7 +51,7 @@ class BasicCodeAgent:
|
|
51 |
def __call__(self, question: str) -> str:
|
52 |
print(f"BasicCodeAgent received question (first 50 chars): {question[:50]}...")
|
53 |
fixed_answer = "This is a default answer."
|
54 |
-
answer = self.agent.run(question)
|
55 |
print(f"BasicCodeAgent returning fixed answer: {fixed_answer}")
|
56 |
return answer
|
57 |
|
@@ -111,6 +111,8 @@ def run_and_submit_all( profile: gr.OAuthProfile | None):
|
|
111 |
results_log = []
|
112 |
answers_payload = []
|
113 |
print(f"Running agent on {len(questions_data)} questions...")
|
|
|
|
|
114 |
for item in questions_data:
|
115 |
task_id = item.get("task_id")
|
116 |
question_text = item.get("question")
|
|
|
51 |
def __call__(self, question: str) -> str:
|
52 |
print(f"BasicCodeAgent received question (first 50 chars): {question[:50]}...")
|
53 |
fixed_answer = "This is a default answer."
|
54 |
+
#answer = self.agent.run(question)
|
55 |
print(f"BasicCodeAgent returning fixed answer: {fixed_answer}")
|
56 |
return answer
|
57 |
|
|
|
111 |
results_log = []
|
112 |
answers_payload = []
|
113 |
print(f"Running agent on {len(questions_data)} questions...")
|
114 |
+
#TO test
|
115 |
+
questions_data = questions_data[0]
|
116 |
for item in questions_data:
|
117 |
task_id = item.get("task_id")
|
118 |
question_text = item.get("question")
|