Spaces:
Running
Running
Update app.py
Browse files
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
|
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
|
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(
|