Spaces:
Running
Running
Update app.py
Browse files
app.py
CHANGED
@@ -286,6 +286,16 @@ STRICT REQUIREMENTS:
|
|
286 |
|
287 |
response_text = message.content[0].text
|
288 |
logger.debug("Successfully received response from Anthropic API")
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
289 |
|
290 |
# Create LaTeX content
|
291 |
questions_latex = create_latex_document(response_text, questions_only=True)
|
|
|
286 |
|
287 |
response_text = message.content[0].text
|
288 |
logger.debug("Successfully received response from Anthropic API")
|
289 |
+
|
290 |
+
# Execute SymPy code and append results
|
291 |
+
sympy_output = extract_and_run_sympy_code(response_text)
|
292 |
+
if sympy_output:
|
293 |
+
response_text += "\n\nSymPy Verification Results:\n```\n" + sympy_output + "```"
|
294 |
+
|
295 |
+
# Then continue with the existing code:
|
296 |
+
# Create LaTeX content
|
297 |
+
questions_latex = create_latex_document(response_text, questions_only=True)
|
298 |
+
full_latex = create_latex_document(response_text, questions_only=False)
|
299 |
|
300 |
# Create LaTeX content
|
301 |
questions_latex = create_latex_document(response_text, questions_only=True)
|