Update app.py
Browse files
app.py
CHANGED
@@ -64,14 +64,10 @@ async def run_and_submit_all(profile: gr.OAuthProfile | None):
|
|
64 |
try:
|
65 |
system_prompt = (
|
66 |
"You are a general AI assistant. I will ask you a question. "
|
67 |
-
"ANSWER IN SINGLE WORD
|
68 |
-
"
|
69 |
-
"
|
70 |
-
|
71 |
-
"Guidelines: Do NOT explain your reasoning. Do NOT output markdown, sections, titles, bullet points, or formatting like (Task outcome), (Detailed version), or (Additional context). Do NOT include references, sources, or citations. Do NOT include any leading text like (Here is the final answer), (The correct answer is), or (Answer):. Do NOT repeat the question or summarize it."
|
72 |
-
"Search the web as much as you want to reach the final answer. In the end choose the best answer after giving it careful thought"
|
73 |
-
"If there is no correct answer (e.g., no such person, place, or event), respond with: FINAL ANSWER: none"
|
74 |
-
)
|
75 |
full_prompt = system_prompt + f"Question: {question_text.strip()}"
|
76 |
|
77 |
agent_result = await loop.run_in_executor(None, agent, full_prompt)
|
|
|
64 |
try:
|
65 |
system_prompt = (
|
66 |
"You are a general AI assistant. I will ask you a question. "
|
67 |
+
"ALWAYS ANSWER ONLY IN SINGLE WORD"
|
68 |
+
"DO NOT provide detailed answers. Only single word answers"
|
69 |
+
"When asked for the IOC country code. Only answer with the country code such as GER"
|
70 |
+
|
|
|
|
|
|
|
|
|
71 |
full_prompt = system_prompt + f"Question: {question_text.strip()}"
|
72 |
|
73 |
agent_result = await loop.run_in_executor(None, agent, full_prompt)
|