joshuarauh commited on
Commit
63ad224
·
verified ·
1 Parent(s): 781bfc3

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +4 -2
app.py CHANGED
@@ -244,7 +244,8 @@ STRICT REQUIREMENTS:
244
  - Put each solution step on its own line in $$ $$
245
  - DO NOT use \\begin{{aligned}} or similar environments
246
  6. Include a detailed solution with thorough explanations of advanced concepts used
247
- 7. Maintain clear, precise formatting"""
 
248
  else:
249
  system_prompt = f"""You are an expert mathematics professor creating a {difficulty_params['description']} exam question.
250
  STRICT REQUIREMENTS:
@@ -264,7 +265,8 @@ STRICT REQUIREMENTS:
264
  - Put each solution step on its own line in $$ $$
265
  - DO NOT use \\begin{{aligned}} or similar environments
266
  5. Include a detailed solution
267
- 6. Maintain clear formatting"""
 
268
 
269
  logger.debug("Sending request to Anthropic API")
270
  message = anthropic.messages.create(
 
244
  - Put each solution step on its own line in $$ $$
245
  - DO NOT use \\begin{{aligned}} or similar environments
246
  6. Include a detailed solution with thorough explanations of advanced concepts used
247
+ 7. Maintain clear, precise formatting
248
+ 8. At the end of the LaTeX solution output, print again the key equations of the solution in SymPy format """
249
  else:
250
  system_prompt = f"""You are an expert mathematics professor creating a {difficulty_params['description']} exam question.
251
  STRICT REQUIREMENTS:
 
265
  - Put each solution step on its own line in $$ $$
266
  - DO NOT use \\begin{{aligned}} or similar environments
267
  5. Include a detailed solution
268
+ 6. Maintain clear formatting
269
+ 7. At the end of the LaTeX solution output, print again the key equations of the solution in SymPy format"""
270
 
271
  logger.debug("Sending request to Anthropic API")
272
  message = anthropic.messages.create(