joshuarauh commited on
Commit
b3ff73e
·
verified ·
1 Parent(s): 4ea7c1f

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -2
app.py CHANGED
@@ -245,7 +245,7 @@ STRICT REQUIREMENTS:
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 math equation that must be solved, but 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:
@@ -266,7 +266,7 @@ STRICT REQUIREMENTS:
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 math equation that must be solved, but in SymPy format"""
270
 
271
  logger.debug("Sending request to Anthropic API")
272
  message = anthropic.messages.create(
 
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 SymPy code that you would use to solve or verify the main equations in the question. """
249
  else:
250
  system_prompt = f"""You are an expert mathematics professor creating a {difficulty_params['description']} exam question.
251
  STRICT REQUIREMENTS:
 
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 SymPy code that you would use to solve or verify the main equations in the question."""
270
 
271
  logger.debug("Sending request to Anthropic API")
272
  message = anthropic.messages.create(