Spaces:
Running
Running
Update app.py
Browse files
app.py
CHANGED
@@ -847,6 +847,9 @@ j. **Concluding and Intuitive Explanations**
|
|
847 |
sympy_output = extract_and_run_sympy_code_simple(response_text)
|
848 |
|
849 |
if sympy_output:
|
|
|
|
|
|
|
850 |
if "Error" not in sympy_output:
|
851 |
resolution_text, has_discrepancy, revised_solution, sympy_correct = check_and_resolve_discrepancy(response_text, sympy_output)
|
852 |
response_text = f"{response_text}\n\nSymPy Verification Results:\n```\n{sympy_output}\n```\n\nVerification Analysis:\n{resolution_text}"
|
|
|
847 |
sympy_output = extract_and_run_sympy_code_simple(response_text)
|
848 |
|
849 |
if sympy_output:
|
850 |
+
has_discrepancy = False # Initialize here
|
851 |
+
sympy_correct = None
|
852 |
+
revised_solution = None
|
853 |
if "Error" not in sympy_output:
|
854 |
resolution_text, has_discrepancy, revised_solution, sympy_correct = check_and_resolve_discrepancy(response_text, sympy_output)
|
855 |
response_text = f"{response_text}\n\nSymPy Verification Results:\n```\n{sympy_output}\n```\n\nVerification Analysis:\n{resolution_text}"
|