Update app.py
Browse files
app.py
CHANGED
|
@@ -1,5 +1,11 @@
|
|
| 1 |
import streamlit as st
|
| 2 |
from streamlit_option_menu import option_menu
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 3 |
|
| 4 |
selected = option_menu(
|
| 5 |
menu_title=None,
|
|
@@ -9,7 +15,7 @@ selected = option_menu(
|
|
| 9 |
)
|
| 10 |
|
| 11 |
if selected == 'About me':
|
| 12 |
-
|
| 13 |
elif selected == 'Projects':
|
| 14 |
st.write(selected)
|
| 15 |
else:
|
|
|
|
| 1 |
import streamlit as st
|
| 2 |
from streamlit_option_menu import option_menu
|
| 3 |
+
import json
|
| 4 |
+
from streamlit_lottie import st_lottie
|
| 5 |
+
|
| 6 |
+
with open('your-animation.json', 'r') as f:
|
| 7 |
+
lottie_json = json.load(f)
|
| 8 |
+
|
| 9 |
|
| 10 |
selected = option_menu(
|
| 11 |
menu_title=None,
|
|
|
|
| 15 |
)
|
| 16 |
|
| 17 |
if selected == 'About me':
|
| 18 |
+
st_lottie(lottie_json, speed=1, width=400, height=400)
|
| 19 |
elif selected == 'Projects':
|
| 20 |
st.write(selected)
|
| 21 |
else:
|