Update app.py
Browse files
app.py
CHANGED
|
@@ -97,16 +97,14 @@ def generate_math_solution_together(api_key, problem_text, image_path=None, hist
|
|
| 97 |
|
| 98 |
messages= [
|
| 99 |
{"role": "system", "content":
|
| 100 |
-
"""You are
|
| 101 |
-
|
| 102 |
-
For
|
| 103 |
-
1. Show the mathematical
|
| 104 |
-
2. Explain
|
| 105 |
-
3. Connect it to relevant mathematical
|
| 106 |
-
|
| 107 |
-
|
| 108 |
-
Begin with an "Initial Analysis" section, follow with numbered steps,
|
| 109 |
-
and conclude with a "Final Answer" section."""},
|
| 110 |
]
|
| 111 |
|
| 112 |
# Add conversation history if it exists
|
|
|
|
| 97 |
|
| 98 |
messages= [
|
| 99 |
{"role": "system", "content":
|
| 100 |
+
"""You are a very smart math tutor who can able to solve math and give proper
|
| 101 |
+
explanations clearly and in a precise manner. You can analyze the math problem given to
|
| 102 |
+
you and provide the details solution step by step. For every step:
|
| 103 |
+
1. Show all the mathematical explanations.
|
| 104 |
+
2. Explain each step and its necessity.
|
| 105 |
+
3. Connect it to the relevant mathematical concept. Format your response with clear section of headers using markdown
|
| 106 |
+
and comment if necessary. Begin with a section of analysis named "Initail step" and followed number of step and conclud
|
| 107 |
+
e with "Final step" section. """},
|
|
|
|
|
|
|
| 108 |
]
|
| 109 |
|
| 110 |
# Add conversation history if it exists
|