Update app.py
Browse files
app.py
CHANGED
|
@@ -2,11 +2,16 @@ import streamlit as st
|
|
| 2 |
from streamlit_option_menu import option_menu
|
| 3 |
import json
|
| 4 |
from streamlit_lottie import st_lottie
|
|
|
|
| 5 |
|
| 6 |
def lottiemaker(path):
|
| 7 |
with open(path) as f:
|
| 8 |
return json.load(f)
|
| 9 |
|
|
|
|
|
|
|
|
|
|
|
|
|
| 10 |
|
| 11 |
selected = option_menu(
|
| 12 |
menu_title=None,
|
|
@@ -31,6 +36,9 @@ if selected == 'About me':
|
|
| 31 |
with col2:
|
| 32 |
st.lottie(lottiemaker('Animation - 1704783527859.json'),speed=2,width=200,height=200)
|
| 33 |
st.write('Tensorflow')
|
|
|
|
|
|
|
|
|
|
| 34 |
elif selected == 'Projects':
|
| 35 |
st.write(selected)
|
| 36 |
else:
|
|
|
|
| 2 |
from streamlit_option_menu import option_menu
|
| 3 |
import json
|
| 4 |
from streamlit_lottie import st_lottie
|
| 5 |
+
from PIL import Image
|
| 6 |
|
| 7 |
def lottiemaker(path):
|
| 8 |
with open(path) as f:
|
| 9 |
return json.load(f)
|
| 10 |
|
| 11 |
+
def loadimg(path):
|
| 12 |
+
img = Image.open(path)
|
| 13 |
+
img = img.resize((200,200))
|
| 14 |
+
return img
|
| 15 |
|
| 16 |
selected = option_menu(
|
| 17 |
menu_title=None,
|
|
|
|
| 36 |
with col2:
|
| 37 |
st.lottie(lottiemaker('Animation - 1704783527859.json'),speed=2,width=200,height=200)
|
| 38 |
st.write('Tensorflow')
|
| 39 |
+
with col3:
|
| 40 |
+
st.image(loadimg('numpy.png'),use_column_width=False)
|
| 41 |
+
st.write('Numpy')
|
| 42 |
elif selected == 'Projects':
|
| 43 |
st.write(selected)
|
| 44 |
else:
|