File size: 766 Bytes
4f00baf
b0d654a
4f00baf
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
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
import awesome_streamlit as ast
import streamlit as st
from home import write as write_home
from pos_tagger import write as write_pos_tagger

st.set_page_config(
    page_title="Hamshetsnag POS Tagger",
    page_icon="📚",
    layout='wide'
)

PAGES = {
    "Home": write_home,
    "POS Tagging": write_pos_tagger,
}

st.sidebar.title("Navigation")
selection = st.sidebar.radio("Pages", list(PAGES.keys()))

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](http://github.com/kelesonur)"
)