euler314 commited on
Commit
ce9d199
·
verified ·
1 Parent(s): 5fe1740

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +6 -8
app.py CHANGED
@@ -12,9 +12,7 @@ import io
12
  import sys
13
  import tempfile
14
  import platform
15
- from sympy import symbols, solve, I, re, im, Poly, simplify, N
16
- import mpmath
17
- import scipy
18
 
19
  # Set page config with wider layout
20
  st.set_page_config(
@@ -865,7 +863,8 @@ if need_compile:
865
  with st.sidebar:
866
  with st.spinner("Compiling C++ code..."):
867
  # Try to detect the OpenCV installation
868
- opencv_detection_cmd = ["pkg-config", "--cflags", "--libs", "opencv4"]
 
869
  opencv_found, opencv_flags, _ = run_command(opencv_detection_cmd, show_output=False)
870
 
871
  compile_commands = []
@@ -2304,17 +2303,16 @@ with tab2:
2304
  help="Select a specific z value to visualize its roots in the complex plane"
2305
  )
2306
 
2307
-
2308
- # Create complex plane visualization
2309
  complex_fig = create_complex_plane_visualization(result, z_idx)
2310
  st.plotly_chart(complex_fig, use_container_width=True)
2311
 
2312
  except Exception as e:
2313
- st.info("Set parameters and click 'Generate Im(s) vs z Analysis' to create a visualization.")
2314
  st.error(f"Error loading previous data: {str(e)}")
2315
  else:
2316
  # Show placeholder
2317
- st.info(" Set parameters and click 'Generate Im(s) vs z Analysis' to create a visualization.")
2318
 
2319
  st.markdown('</div>', unsafe_allow_html=True)
2320
 
 
12
  import sys
13
  import tempfile
14
  import platform
15
+ from sympy import symbols, solve, I, re, im, Poly, simplify, N, mpmath
 
 
16
 
17
  # Set page config with wider layout
18
  st.set_page_config(
 
863
  with st.sidebar:
864
  with st.spinner("Compiling C++ code..."):
865
  # Try to detect the OpenCV installation
866
+ opencv_detection_cmd = ["pk
867
+ g-config", "--cflags", "--libs", "opencv4"]
868
  opencv_found, opencv_flags, _ = run_command(opencv_detection_cmd, show_output=False)
869
 
870
  compile_commands = []
 
2303
  help="Select a specific z value to visualize its roots in the complex plane"
2304
  )
2305
 
2306
+ # Create complex plane visualization
 
2307
  complex_fig = create_complex_plane_visualization(result, z_idx)
2308
  st.plotly_chart(complex_fig, use_container_width=True)
2309
 
2310
  except Exception as e:
2311
+ st.info("👈 Set parameters and click 'Generate Im(s) vs z Analysis' to create a visualization.")
2312
  st.error(f"Error loading previous data: {str(e)}")
2313
  else:
2314
  # Show placeholder
2315
+ st.info("👈 Set parameters and click 'Generate Im(s) vs z Analysis' to create a visualization.")
2316
 
2317
  st.markdown('</div>', unsafe_allow_html=True)
2318