ankithpatel commited on
Commit
3cbb385
·
verified ·
1 Parent(s): fa1964d

Update pages/Machine learning VS Deep Learning.py

Browse files

![Understanding the Hype Around Machine Learning.gif](https://cdn-uploads.huggingface.co/production/uploads/673f7f58125bcd87033d7694/KaTab_vkzUAuTMUpNMM6X.gif)

pages/Machine learning VS Deep Learning.py CHANGED
@@ -96,6 +96,26 @@ st.markdown(css_style, unsafe_allow_html=True)
96
 
97
  # Render the HTML in Streamlit
98
  st.markdown(html_code, unsafe_allow_html=True)
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
99
 
100
 
101
 
 
96
 
97
  # Render the HTML in Streamlit
98
  st.markdown(html_code, unsafe_allow_html=True)
99
+ import base64
100
+
101
+ # Convert the local image to a Base64 string
102
+ def get_base64_image(img_path):
103
+ with open(img_path, "rb") as f:
104
+ data = f.read()
105
+ return base64.b64encode(data).decode()
106
+
107
+ # Load local image
108
+ img_base64 = get_base64_image("C:\Users\ankit\Downloads\Understanding the Hype Around Machine Learning.gif")
109
+
110
+ # HTML code for the local image
111
+ html_code = f"""
112
+ <div style="text-align: center;">
113
+ <img src="data:image/jpeg;base64,{img_base64}" alt="Local Image" style="border: 2px solid black; border-radius: 10px; max-width: 100%; height: auto;">
114
+ </div>
115
+ """
116
+ st.markdown(html_code, unsafe_allow_html=True)
117
+
118
+
119
 
120
 
121