Update app.py
Browse files
app.py
CHANGED
@@ -20,7 +20,7 @@ async def run_and_submit_all(profile: gr.OAuthProfile | None):
|
|
20 |
try:
|
21 |
agent = CodeAgent(
|
22 |
tools=[search_tool],
|
23 |
-
model=InferenceClientModel(model="
|
24 |
max_steps=7,
|
25 |
verbosity_level=0,
|
26 |
)
|
@@ -37,8 +37,8 @@ async def run_and_submit_all(profile: gr.OAuthProfile | None):
|
|
37 |
response.raise_for_status()
|
38 |
questions_data = response.json()
|
39 |
|
40 |
-
selected_indices = [0,2,3,4,5,8,9,10,11,14,15,16,18] # 2nd, 5th, 6th, and 8th questions
|
41 |
-
questions_data = [questions_data[i] for i in selected_indices if i < len(questions_data)]
|
42 |
|
43 |
|
44 |
if not questions_data:
|
@@ -72,6 +72,20 @@ async def run_and_submit_all(profile: gr.OAuthProfile | None):
|
|
72 |
"ALWAYS answer with the least amount of words (single word wherever possible). If the answer is 'right', say 'right, and not 'the answer is right'"
|
73 |
"Only respond with your final answer using the format: FINAL ANSWER: [your answer]. Do not include reasoning, context, explanations, markdown, or additional sections."
|
74 |
"Do not provide short answers and detailed answers seperately. You ONLY have to answer with the shortest answer possible. We DO NOT need explanations. Also dont use 'task outcome:'"
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
75 |
"If you are asked for a comma separated list, apply the above rules depending of whether the element to be put in the list is a number or a string.\n\n"
|
76 |
|
77 |
)
|
|
|
20 |
try:
|
21 |
agent = CodeAgent(
|
22 |
tools=[search_tool],
|
23 |
+
model=InferenceClientModel(model="deepseek-ai/DeepSeek-R1-0528", provider="featherless-ai"),
|
24 |
max_steps=7,
|
25 |
verbosity_level=0,
|
26 |
)
|
|
|
37 |
response.raise_for_status()
|
38 |
questions_data = response.json()
|
39 |
|
40 |
+
#selected_indices = [0,2,3,4,5,8,9,10,11,14,15,16,18] # 2nd, 5th, 6th, and 8th questions
|
41 |
+
#questions_data = [questions_data[i] for i in selected_indices if i < len(questions_data)]
|
42 |
|
43 |
|
44 |
if not questions_data:
|
|
|
72 |
"ALWAYS answer with the least amount of words (single word wherever possible). If the answer is 'right', say 'right, and not 'the answer is right'"
|
73 |
"Only respond with your final answer using the format: FINAL ANSWER: [your answer]. Do not include reasoning, context, explanations, markdown, or additional sections."
|
74 |
"Do not provide short answers and detailed answers seperately. You ONLY have to answer with the shortest answer possible. We DO NOT need explanations. Also dont use 'task outcome:'"
|
75 |
+
"You are a precise and concise AI assistant competing in a strict evaluation benchmark."
|
76 |
+
|
77 |
+
"You are a precise and concise AI assistant competing in a strict evaluation benchmark. You will be asked a question. You must only output a single final answer, using the following format exactly: FINAL ANSWER: [your answer]"
|
78 |
+
"Guidelines:
|
79 |
+
Do NOT explain your reasoning.
|
80 |
+
Do NOT output markdown, sections, titles, bullet points, or formatting like "Task outcome", "Detailed version", or "Additional context".
|
81 |
+
Do NOT include references, sources, or citations.
|
82 |
+
Do NOT include any leading text like "Here is the final answer", "The correct answer is", or "Answer:".
|
83 |
+
Do NOT repeat the question or summarize it.
|
84 |
+
Your response must consist of a single line starting with: FINAL ANSWER: and nothing else.
|
85 |
+
Normalization rules:
|
86 |
+
If the answer is a list, apply the above rules to each item, and separate them with commas.
|
87 |
+
If the answer is a number, write it as digits (no commas, no units unless asked).
|
88 |
+
If the answer is a string, use lowercase, no articles ("a", "an", "the"), and no abbreviations."
|
89 |
"If you are asked for a comma separated list, apply the above rules depending of whether the element to be put in the list is a number or a string.\n\n"
|
90 |
|
91 |
)
|