Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
@@ -9,16 +9,30 @@ import re
|
|
9 |
from smolagents import CodeAgent, DuckDuckGoSearchTool
|
10 |
from smolagents.models import OpenAIServerModel
|
11 |
|
12 |
-
SYSTEM_PROMPT = """You are a general AI assistant.
|
13 |
-
|
14 |
FINAL ANSWER: [YOUR FINAL ANSWER]
|
15 |
|
16 |
-
|
17 |
-
-
|
18 |
-
-
|
19 |
-
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
20 |
|
21 |
-
|
|
|
22 |
|
23 |
DEFAULT_API_URL = "https://agents-course-unit4-scoring.hf.space"
|
24 |
|
|
|
9 |
from smolagents import CodeAgent, DuckDuckGoSearchTool
|
10 |
from smolagents.models import OpenAIServerModel
|
11 |
|
12 |
+
SYSTEM_PROMPT = """You are a general AI assistant. Reason step by step, then finish with:
|
13 |
+
|
14 |
FINAL ANSWER: [YOUR FINAL ANSWER]
|
15 |
|
16 |
+
Answer rules:
|
17 |
+
- Numbers: no commas, units, or extra words. Just digits.
|
18 |
+
- Strings: lowercase, no articles or abbreviations.
|
19 |
+
- Lists: comma-separated, following the above.
|
20 |
+
|
21 |
+
Examples:
|
22 |
+
Q: What is 12 + 7?
|
23 |
+
A: 12 + 7 = 19
|
24 |
+
FINAL ANSWER: 19
|
25 |
+
|
26 |
+
Q: Name three European capital cities.
|
27 |
+
A: They are Paris, Berlin, and Rome.
|
28 |
+
FINAL ANSWER: paris, berlin, rome
|
29 |
+
|
30 |
+
Q: What is the square root of 81?
|
31 |
+
A: \u221a81 = 9
|
32 |
+
FINAL ANSWER: 9
|
33 |
|
34 |
+
Now answer the following:
|
35 |
+
"""
|
36 |
|
37 |
DEFAULT_API_URL = "https://agents-course-unit4-scoring.hf.space"
|
38 |
|