Sathwikchowdary commited on
Commit
b070d6e
·
verified ·
1 Parent(s): 801dbe0

Update pages/Life_cycle_of_ML.py

Browse files
Files changed (1) hide show
  1. pages/Life_cycle_of_ML.py +7 -1
pages/Life_cycle_of_ML.py CHANGED
@@ -1,4 +1,7 @@
1
  import streamlit as st
 
 
 
2
  # Shapes in Markdown
3
 
4
  ## Rectangle
@@ -11,7 +14,6 @@ import streamlit as st
11
  <div style="width: 200px; height: 100px; border-radius: 50%; background-color: lightgreen;"></div>
12
 
13
  ## SVG Shapes
14
-
15
  <svg width="300" height="200">
16
  <!-- Rectangle -->
17
  <rect x="10" y="10" width="100" height="50" style="fill:lightblue;stroke:black;stroke-width:2" />
@@ -20,3 +22,7 @@ import streamlit as st
20
  <!-- Ellipse -->
21
  <ellipse cx="200" cy="150" rx="85" ry="55" style="fill:lightgreen;stroke:black;stroke-width:2" />
22
  </svg>
 
 
 
 
 
1
  import streamlit as st
2
+
3
+ # HTML content inside a string for correct syntax
4
+ html_content = """
5
  # Shapes in Markdown
6
 
7
  ## Rectangle
 
14
  <div style="width: 200px; height: 100px; border-radius: 50%; background-color: lightgreen;"></div>
15
 
16
  ## SVG Shapes
 
17
  <svg width="300" height="200">
18
  <!-- Rectangle -->
19
  <rect x="10" y="10" width="100" height="50" style="fill:lightblue;stroke:black;stroke-width:2" />
 
22
  <!-- Ellipse -->
23
  <ellipse cx="200" cy="150" rx="85" ry="55" style="fill:lightgreen;stroke:black;stroke-width:2" />
24
  </svg>
25
+ """
26
+
27
+ # Render HTML content in Streamlit
28
+ st.markdown(html_content, unsafe_allow_html=True)