Update app.py
Browse files
app.py
CHANGED
@@ -35,7 +35,7 @@ async def run_and_submit_all(profile: gr.OAuthProfile | None):
|
|
35 |
try:
|
36 |
response = requests.get(questions_url, timeout=15)
|
37 |
response.raise_for_status()
|
38 |
-
questions_data = response.json()[
|
39 |
if not questions_data:
|
40 |
yield "Fetched questions list is empty or invalid format.", None, log_output
|
41 |
return
|
@@ -65,6 +65,7 @@ async def run_and_submit_all(profile: gr.OAuthProfile | None):
|
|
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 answer is that no such event or person exists, respond with the single word 'none' or 'no one' as appropriate. Avoid long explanations."
|
67 |
"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'"
|
|
|
68 |
"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"
|
69 |
)
|
70 |
full_prompt = system_prompt + f"Question: {question_text.strip()}"
|
|
|
35 |
try:
|
36 |
response = requests.get(questions_url, timeout=15)
|
37 |
response.raise_for_status()
|
38 |
+
questions_data = response.json()[2]
|
39 |
if not questions_data:
|
40 |
yield "Fetched questions list is empty or invalid format.", None, log_output
|
41 |
return
|
|
|
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 answer is that no such event or person exists, respond with the single word 'none' or 'no one' as appropriate. Avoid long explanations."
|
67 |
"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'"
|
68 |
+
"Only respond with your final answer using the format: FINAL ANSWER: [your answer]. Do not include reasoning, context, explanations, markdown, or additional sections."
|
69 |
"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"
|
70 |
)
|
71 |
full_prompt = system_prompt + f"Question: {question_text.strip()}"
|