euler314 commited on
Commit
8e76ca4
·
verified ·
1 Parent(s): 6c21feb

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +3 -2
app.py CHANGED
@@ -19,9 +19,10 @@ st.set_page_config(
19
  try:
20
  import cubic_cpp
21
  cpp_available = True
22
- except ImportError:
 
 
23
  cpp_available = False
24
- st.warning("⚠️ C++ acceleration unavailable. Using slower Python implementation.")
25
 
26
  def add_sqrt_support(expr_str):
27
  """Replace 'sqrt(' with 'sp.sqrt(' for sympy compatibility"""
 
19
  try:
20
  import cubic_cpp
21
  cpp_available = True
22
+ st.success("✅ C++ acceleration active")
23
+ except ImportError as e:
24
+ st.warning(f"⚠️ C++ acceleration unavailable: {str(e)}")
25
  cpp_available = False
 
26
 
27
  def add_sqrt_support(expr_str):
28
  """Replace 'sqrt(' with 'sp.sqrt(' for sympy compatibility"""