Spaces:
Running
Running
Update app.py
Browse files
app.py
CHANGED
@@ -19,9 +19,10 @@ st.set_page_config(
|
|
19 |
try:
|
20 |
import cubic_cpp
|
21 |
cpp_available = True
|
22 |
-
|
|
|
|
|
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"""
|