QuickLearnerAI commited on
Commit
f05492c
·
verified ·
1 Parent(s): 205fe04

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +8 -10
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 an expert math tutor who explains concepts clearly and thoroughly.
101
- Analyze the given math problem and provide a detailed step-by-step solution.
102
- For each step:
103
- 1. Show the mathematical operation
104
- 2. Explain why this step is necessary
105
- 3. Connect it to relevant mathematical concepts
106
-
107
- Format your response with clear section headers using markdown.
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