tog commited on
Commit
af1baf4
·
verified ·
1 Parent(s): 9f62e09

Return string and not LaTeX

Browse files
Files changed (1) hide show
  1. app.py +3 -2
app.py CHANGED
@@ -23,8 +23,9 @@ def simplify_expression(arg1:str)-> str:
23
  # Factor if possible
24
  factored_expression = sp.factor(simplified_expression)
25
  # Générer LaTeX output (best rendered in md)
26
- latex_code = sp.latex(factored_expression)
27
- return latex_code
 
28
  except Exception as e:
29
  return f"Ouch, is that a valid math expression : {e}"
30
 
 
23
  # Factor if possible
24
  factored_expression = sp.factor(simplified_expression)
25
  # Générer LaTeX output (best rendered in md)
26
+ # latex_code = sp.latex(factored_expression)
27
+ # return latex_code
28
+ return factored_expression
29
  except Exception as e:
30
  return f"Ouch, is that a valid math expression : {e}"
31