File size: 836 Bytes
bfaf2ba |
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 |
import streamlit as st
from pathlib import Path
from utils import get_tweet, display_page
path = Path("urls")
st.set_page_config(
page_title='MLBookmark',
page_icon='π',
layout='wide',
initial_sidebar_state='collapsed'
)
st.write('<style>div.row-widget.stRadio > div{flex-direction:row;}</style>', unsafe_allow_html=True)
option = st.radio(
label="",
options=["Learning resources", "Threads", "Quick tips", "Tools", "Updates"]
)
if option.lower()=="learning resources":
display_page(path/"learning_resources")
elif option.lower()=="threads":
display_page(path/"threads")
elif option.lower()=="quick tips":
display_page(path/"quick_tips")
elif option.lower()=="tools":
display_page(path/"tools")
elif option.lower()=="updates":
display_page(path/"updates")
|