tog commited on
Commit
b934837
·
verified ·
1 Parent(s): 6ebe2f2

Add missing import

Browse files
Files changed (1) hide show
  1. app.py +1 -0
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)