Spaces:
Runtime error
Runtime error
Add missing import
Browse files
app.py
CHANGED
@@ -14,6 +14,7 @@ def simplify_expression(arg1:str)-> str:
|
|
14 |
arg1: the mathematical expression
|
15 |
"""
|
16 |
try:
|
|
|
17 |
# define x & y variables
|
18 |
x, y = sp.symbols('x y')
|
19 |
expression = sp.sympify(arg1)
|
|
|
14 |
arg1: the mathematical expression
|
15 |
"""
|
16 |
try:
|
17 |
+
import sympy as sp
|
18 |
# define x & y variables
|
19 |
x, y = sp.symbols('x y')
|
20 |
expression = sp.sympify(arg1)
|