File size: 1,374 Bytes
5dc09e9
 
 
 
95b97b8
4a4e551
6a67c51
e6bed4b
9ab8c93
 
f2d86ab
 
ca81517
91a6027
ca81517
5dc09e9
 
fe3e95d
5dc09e9
 
 
 
95b97b8
f2d86ab
1dbf22b
e6bed4b
 
9ab8c93
 
f2d86ab
ca81517
 
91a6027
ca81517
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
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
import awesome_streamlit as ast
import streamlit as st
from transformers import pipeline

import apps.summarization
import apps.home
import apps.paraphrasing
import apps.title_generation
import apps.sentiment
import apps.categorization
import apps.ner
import apps.pos_tagging
import apps.sts
import apps.nli
import apps.turna

st.set_page_config(
        page_title="TURNA",
        page_icon="📖",
        layout='wide'
    )

PAGES = {
    "TURNA": apps.home,
    "Text Summarization": apps.summarization,
    "Text Paraphrasing": apps.paraphrasing,
    "News Title Generation": apps.title_generation,
    "Sentiment Classification": apps.sentiment,
    "Text Categorization": apps.categorization,
    "Named Entity Recognition": apps.ner,
    "Part-of-Speech Tagging": apps.pos_tagging,
    "Semantic Textual Similarity": apps.sts,
    "Natural Language Inference": apps.nli,
    "Text Generation": apps.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(
    "Model source code available on [GitHub](https://github.com/boun-tabi-LMG/turkish-lm-tuner)"
)