Sathwikchowdary commited on
Commit
e72bace
·
verified ·
1 Parent(s): 3b2931f

Update pages/Life_cycle_of_ML.py

Browse files
Files changed (1) hide show
  1. pages/Life_cycle_of_ML.py +9 -20
pages/Life_cycle_of_ML.py CHANGED
@@ -1,19 +1,12 @@
1
  import streamlit as st
2
 
3
- # Center alignment for SVG diagram
4
  st.markdown('<div style="text-align: center;">', unsafe_allow_html=True)
5
 
6
- # SVG Diagram for Machine Learning Life Cycle
7
  st.markdown('''
8
  <svg width="700" height="500">
9
 
10
- <!-- Definitions for arrowheads -->
11
- <defs>
12
- <marker id="arrow" markerWidth="10" markerHeight="10" refX="5" refY="5" orient="auto">
13
- <path d="M0,0 L10,5 L0,10 z" fill="#000" />
14
- </marker>
15
- </defs>
16
-
17
  <!-- Problem Definition -->
18
  <rect x="50" y="50" width="200" height="50" fill="#FFD700" stroke="#000" />
19
  <text x="70" y="80" fill="#000" font-size="14">Problem Definition</text>
@@ -39,19 +32,15 @@ st.markdown('''
39
  <text x="230" y="430" fill="#000" font-size="14">Deployment</text>
40
 
41
  <!-- Arrows -->
42
- <line x1="150" y1="100" x2="150" y2="150" stroke="#000" marker-end="url(#arrow)" />
43
- <line x1="150" y1="200" x2="150" y2="250" stroke="#000" marker-end="url(#arrow)" />
44
- <line x1="250" y1="175" x2="350" y2="175" stroke="#000" marker-end="url(#arrow)" />
45
- <line x1="450" y1="200" x2="450" y2="250" stroke="#000" marker-end="url(#arrow)" />
46
- <line x1="350" y1="275" x2="250" y2="275" stroke="#000" marker-end="url(#arrow)" />
47
- <line x1="300" y1="300" x2="300" y2="400" stroke="#000" marker-end="url(#arrow)" />
48
 
49
  </svg>
50
  ''', unsafe_allow_html=True)
51
 
52
- # Closing div
53
  st.markdown('</div>', unsafe_allow_html=True)
54
-
55
-
56
-
57
-
 
1
  import streamlit as st
2
 
3
+ # Center alignment for the SVG diagram
4
  st.markdown('<div style="text-align: center;">', unsafe_allow_html=True)
5
 
6
+ # Simplified SVG Diagram for Machine Learning Life Cycle
7
  st.markdown('''
8
  <svg width="700" height="500">
9
 
 
 
 
 
 
 
 
10
  <!-- Problem Definition -->
11
  <rect x="50" y="50" width="200" height="50" fill="#FFD700" stroke="#000" />
12
  <text x="70" y="80" fill="#000" font-size="14">Problem Definition</text>
 
32
  <text x="230" y="430" fill="#000" font-size="14">Deployment</text>
33
 
34
  <!-- Arrows -->
35
+ <line x1="150" y1="100" x2="150" y2="150" stroke="#000" />
36
+ <line x1="150" y1="200" x2="150" y2="250" stroke="#000" />
37
+ <line x1="250" y1="175" x2="350" y2="175" stroke="#000" />
38
+ <line x1="450" y1="200" x2="450" y2="250" stroke="#000" />
39
+ <line x1="350" y1="275" x2="250" y2="275" stroke="#000" />
40
+ <line x1="300" y1="300" x2="300" y2="400" stroke="#000" />
41
 
42
  </svg>
43
  ''', unsafe_allow_html=True)
44
 
45
+ # Close the div
46
  st.markdown('</div>', unsafe_allow_html=True)