File size: 775 Bytes
5dc09e9
 
 
 
95b97b8
4a4e551
5dc09e9
 
 
 
 
 
 
95b97b8
adb1cfa
117e979
95b97b8
 
 
 
 
 
 
 
 
 
5dc09e9
 
 
 
 
 
 
 
 
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
36
import awesome_streamlit as ast
import streamlit as st
from transformers import pipeline

import apps.summarization
import apps.home

st.set_page_config(
        page_title="Turna",
        page_icon="πŸ“–",
        layout='wide'
    )

PAGES = {
    "Turna": apps.home,
    "Text Summarization": apps.summarization
}


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(
    "Model source code available on [GitHub](https://github.com/boun-tabi-LMG/turkish-lm-tuner)"
)