Sathwikchowdary commited on
Commit
fe68b65
·
verified ·
1 Parent(s): 70531fd

Update pages/Life_cycle_of_ML.py

Browse files
Files changed (1) hide show
  1. pages/Life_cycle_of_ML.py +6 -8
pages/Life_cycle_of_ML.py CHANGED
@@ -1,10 +1,7 @@
1
  import streamlit as st
2
 
3
- # Center alignment for the SVG diagram
4
- st.markdown('<div align="center">', unsafe_allow_html=True)
5
-
6
- # SVG with shapes and clickable buttons (links)
7
- st.markdown('''
8
  <svg width="600" height="400">
9
 
10
  <!-- Problem Definition -->
@@ -52,7 +49,8 @@ st.markdown('''
52
  <line x1="340" y1="225" x2="450" y2="225" stroke="#000" marker-end="url(#arrow)" />
53
 
54
  </svg>
55
- ''', unsafe_allow_html=True)
 
 
 
56
 
57
- # Close the div for centering the SVG
58
- st.markdown('</div>', unsafe_allow_html=True)
 
1
  import streamlit as st
2
 
3
+ # SVG diagram with clickable shapes as buttons
4
+ svg_code = """
 
 
 
5
  <svg width="600" height="400">
6
 
7
  <!-- Problem Definition -->
 
49
  <line x1="340" y1="225" x2="450" y2="225" stroke="#000" marker-end="url(#arrow)" />
50
 
51
  </svg>
52
+ """
53
+
54
+ # Using Streamlit to render the SVG as a raw HTML string
55
+ st.markdown(f'<div align="center">{svg_code}</div>', unsafe_allow_html=True)
56