Spaces:
Sleeping
Sleeping
add task_id
Browse files- app.py +2 -2
- basic_agent.py +1 -1
app.py
CHANGED
@@ -61,7 +61,7 @@ def run_and_submit_all(profile: gr.OAuthProfile | None):
|
|
61 |
continue
|
62 |
try:
|
63 |
print(f"Running agent for Task ID {task_id}...")
|
64 |
-
submitted_answer = agent(q_text)
|
65 |
answers_payload.append(
|
66 |
{"task_id": task_id, "submitted_answer": submitted_answer})
|
67 |
results_log.append(
|
@@ -154,7 +154,7 @@ def run_single_question_action(profile: gr.OAuthProfile | None, q_idx: int | Non
|
|
154 |
|
155 |
print(f"Running for Task ID {task_id} (Index {q_idx}): {q_text[:50]}...")
|
156 |
try:
|
157 |
-
submitted_answer = agent(q_text)
|
158 |
status_msg = f"Successfully processed Task ID {task_id}."
|
159 |
except Exception as e:
|
160 |
submitted_answer = f"AGENT ERROR: {e}"
|
|
|
61 |
continue
|
62 |
try:
|
63 |
print(f"Running agent for Task ID {task_id}...")
|
64 |
+
submitted_answer = agent(task_id, q_text)
|
65 |
answers_payload.append(
|
66 |
{"task_id": task_id, "submitted_answer": submitted_answer})
|
67 |
results_log.append(
|
|
|
154 |
|
155 |
print(f"Running for Task ID {task_id} (Index {q_idx}): {q_text[:50]}...")
|
156 |
try:
|
157 |
+
submitted_answer = agent(task_id, q_text)
|
158 |
status_msg = f"Successfully processed Task ID {task_id}."
|
159 |
except Exception as e:
|
160 |
submitted_answer = f"AGENT ERROR: {e}"
|
basic_agent.py
CHANGED
@@ -6,7 +6,7 @@ class BasicAgent:
|
|
6 |
def __init__(self):
|
7 |
print("BasicAgent initialized.")
|
8 |
|
9 |
-
def __call__(self, question: str) -> str:
|
10 |
print(f"Agent received question (first 50 chars): {question[:50]}...")
|
11 |
|
12 |
model = LiteLLMModel(model_id="groq/deepseek-r1-distill-llama-70b",
|
|
|
6 |
def __init__(self):
|
7 |
print("BasicAgent initialized.")
|
8 |
|
9 |
+
def __call__(self, task_id: str, question: str) -> str:
|
10 |
print(f"Agent received question (first 50 chars): {question[:50]}...")
|
11 |
|
12 |
model = LiteLLMModel(model_id="groq/deepseek-r1-distill-llama-70b",
|