File size: 725 Bytes
6ca2b72
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
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
import awesome_streamlit as ast
import streamlit as st

import pages.home
import pages.turna

st.set_page_config(
    page_title="TEST", page_icon="πŸ“–", initial_sidebar_state="expanded", layout="wide"
)

PAGES = {
    "Home": pages.home,
    "Turna": pages.turna,
}

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 are available on [HF Hub](https://huggingface.co/collections/boun-tabi-LMG)"
)
st.sidebar.write(
    "Models source code available on [GitHub](https://github.com/boun-tabi-LMG/turkish-lm-tuner)"
)