Spaces:
Sleeping
Sleeping
Update pages/Machine learning VS Deep Learning.py
Browse files
pages/Machine learning VS Deep Learning.py
CHANGED
@@ -95,4 +95,20 @@ html_code = """
|
|
95 |
st.markdown(css_style, unsafe_allow_html=True)
|
96 |
|
97 |
# Render the HTML in Streamlit
|
98 |
-
st.markdown(html_code, unsafe_allow_html=True)
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
95 |
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 |
+
|
102 |
+
import streamlit as st
|
103 |
+
|
104 |
+
# Local GIF path
|
105 |
+
gif_path = "C:\Users\ankit\Downloads\Understanding the Hype Around Machine Learning.gif"
|
106 |
+
|
107 |
+
# Display the GIF
|
108 |
+
html_code = f"""
|
109 |
+
<div style="text-align: center;">
|
110 |
+
<img src="data:image/gif;base64,{st.file_uploader.read().encode('base64').decode()}" alt="Sample GIF" style="width: 50%; border-radius: 10px; box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);">
|
111 |
+
</div>
|
112 |
+
"""
|
113 |
+
|
114 |
+
st.markdown(html_code, unsafe_allow_html=True)
|