Update app.py
Browse files
app.py
CHANGED
@@ -21,8 +21,8 @@ async def run_and_submit_all(profile: gr.OAuthProfile | None):
|
|
21 |
agent = CodeAgent(
|
22 |
tools=[search_tool],
|
23 |
model=InferenceClientModel(model="deepseek-ai/DeepSeek-R1-0528", provider="featherless-ai"),
|
24 |
-
max_steps=
|
25 |
-
verbosity_level=
|
26 |
)
|
27 |
except Exception as e:
|
28 |
yield f"Error initializing agent: {e}", None, log_output
|
@@ -63,6 +63,7 @@ async def run_and_submit_all(profile: gr.OAuthProfile | None):
|
|
63 |
"FINAL ANSWER: [YOUR FINAL ANSWER]. YOUR FINAL ANSWER should be a number OR as few words as possible OR a comma separated list of numbers and/or strings. "
|
64 |
"If you are asked for a number, don't use comma to write your number neither use units such as $ or percent sign unless specified otherwise. "
|
65 |
"If you are asked for a string, don't use articles, neither abbreviations (e.g. for cities), and write the digits in plain text unless specified otherwise. "
|
|
|
66 |
"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"
|
67 |
)
|
68 |
full_prompt = system_prompt + f"Question: {question_text.strip()}"
|
|
|
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 |
)
|
27 |
except Exception as e:
|
28 |
yield f"Error initializing agent: {e}", None, log_output
|
|
|
63 |
"FINAL ANSWER: [YOUR FINAL ANSWER]. YOUR FINAL ANSWER should be a number OR as few words as possible OR a comma separated list of numbers and/or strings. "
|
64 |
"If you are asked for a number, don't use comma to write your number neither use units such as $ or percent sign unless specified otherwise. "
|
65 |
"If you are asked for a string, don't use articles, neither abbreviations (e.g. for cities), and write the digits in plain text unless specified otherwise. "
|
66 |
+
"If the question asks about a specific event or fact, and no such event occurred (e.g., no dinosaur article featured in a given month), state that clearly. Do not guess or make up names. Only answer if you are confident based on evidence."
|
67 |
"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"
|
68 |
)
|
69 |
full_prompt = system_prompt + f"Question: {question_text.strip()}"
|