Update app.py
Browse files
app.py
CHANGED
|
@@ -3,8 +3,9 @@ from streamlit_option_menu import option_menu
|
|
| 3 |
import json
|
| 4 |
from streamlit_lottie import st_lottie
|
| 5 |
|
| 6 |
-
|
| 7 |
-
|
|
|
|
| 8 |
|
| 9 |
|
| 10 |
selected = option_menu(
|
|
@@ -17,12 +18,19 @@ selected = option_menu(
|
|
| 17 |
if selected == 'About me':
|
| 18 |
col1,col2 = st.columns(2)# Display the Lottie animation in the first column
|
| 19 |
with col1:
|
| 20 |
-
st_lottie(
|
| 21 |
with col2:
|
| 22 |
st.write('# Hi, I am a young Machine learning Engineer from West Bengal, India')
|
| 23 |
st.write('I have been learning Machine learning since 2021 and have Made more than 50 projects in the field of Machine Learning')
|
| 24 |
|
|
|
|
| 25 |
col1,col2,col3,col4 = st.columns(4)
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 26 |
elif selected == 'Projects':
|
| 27 |
st.write(selected)
|
| 28 |
else:
|
|
|
|
| 3 |
import json
|
| 4 |
from streamlit_lottie import st_lottie
|
| 5 |
|
| 6 |
+
def lottiemaker(path):
|
| 7 |
+
with open('r') as f:
|
| 8 |
+
return json.load(f)
|
| 9 |
|
| 10 |
|
| 11 |
selected = option_menu(
|
|
|
|
| 18 |
if selected == 'About me':
|
| 19 |
col1,col2 = st.columns(2)# Display the Lottie animation in the first column
|
| 20 |
with col1:
|
| 21 |
+
st_lottie(lottiemaker('Animation - 1704777936737.json'), speed=1, width=250, height=250)
|
| 22 |
with col2:
|
| 23 |
st.write('# Hi, I am a young Machine learning Engineer from West Bengal, India')
|
| 24 |
st.write('I have been learning Machine learning since 2021 and have Made more than 50 projects in the field of Machine Learning')
|
| 25 |
|
| 26 |
+
st.write('Tools I use to train AI')
|
| 27 |
col1,col2,col3,col4 = st.columns(4)
|
| 28 |
+
with col1:
|
| 29 |
+
st_lottie(lottiemaker('python.json'), speed=1, width=200, height=200)
|
| 30 |
+
st.write("Python")
|
| 31 |
+
with col2:
|
| 32 |
+
st.lottie(lottiemaker('Animation - 1704783527859.json'),speed=2,eidth=200,height=200)
|
| 33 |
+
st.write('Tensorflow')
|
| 34 |
elif selected == 'Projects':
|
| 35 |
st.write(selected)
|
| 36 |
else:
|