Spaces:
Running
Running
Update app.py
Browse files
app.py
CHANGED
@@ -531,6 +531,10 @@ STRICT REQUIREMENTS:
|
|
531 |
|
532 |
return response_text, questions_path, full_path
|
533 |
|
|
|
|
|
|
|
|
|
534 |
def extract_and_run_sympy_code_simple(response_text):
|
535 |
"""
|
536 |
Extract SymPy code from the response and execute it.
|
|
|
531 |
|
532 |
return response_text, questions_path, full_path
|
533 |
|
534 |
+
except Exception as e:
|
535 |
+
logger.error(f"Error generating question: {str(e)}")
|
536 |
+
return f"Error: {str(e)}", None, None
|
537 |
+
|
538 |
def extract_and_run_sympy_code_simple(response_text):
|
539 |
"""
|
540 |
Extract SymPy code from the response and execute it.
|