hms-pos-tagger / app.py
onurkeles's picture
Update app.py
6ae2d76 verified
raw
history blame
779 Bytes
import awesome_streamlit as ast
import streamlit as st
import home
import pos_tagger
st.set_page_config(page_title="Hamshetsnag POS Tagger",
page_icon="📚",
layout='wide'
)
PAGES = {
"Home": home,
"POS Tagging": pos_tagger,
}
st.sidebar.title("Navigation")
selection = st.sidebar.radio("Pages", list(PAGES.keys()))
# Load and display the selected page
page = PAGES[selection]
# with st.spinner(f"Loading {selection} ..."):
ast.shared.components.write_page(page)
st.sidebar.header("Info")
st.sidebar.write(
"Models available on [HF Hub](https://huggingface.co/onurkeles/hamshetsnag-pos-tagger)"
)
st.sidebar.write(
"Model source code will be soon available on [GitHub](https://github.com/kelesonur)"
)