yirmibesogluz commited on
Commit
6ca2b72
β€’
1 Parent(s): c3852cc

Added initial application file

Browse files
Files changed (4) hide show
  1. app.py +31 -0
  2. images/turna-logo.png +0 -0
  3. pages/home.py +14 -0
  4. pages/turna.py +0 -0
app.py ADDED
@@ -0,0 +1,31 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ import awesome_streamlit as ast
2
+ import streamlit as st
3
+
4
+ import pages.home
5
+ import pages.turna
6
+
7
+ st.set_page_config(
8
+ page_title="TEST", page_icon="πŸ“–", initial_sidebar_state="expanded", layout="wide"
9
+ )
10
+
11
+ PAGES = {
12
+ "Home": pages.home,
13
+ "Turna": pages.turna,
14
+ }
15
+
16
+ st.sidebar.title("Navigation")
17
+ selection = st.sidebar.radio("Pages", list(PAGES.keys()))
18
+
19
+ page = PAGES[selection]
20
+ # with st.spinner(f"Loading {selection} ..."):
21
+ ast.shared.components.write_page(page)
22
+
23
+ st.sidebar.header("Info")
24
+
25
+ st.sidebar.write(
26
+ "Models are available on [HF Hub](https://huggingface.co/collections/boun-tabi-LMG)"
27
+ )
28
+ st.sidebar.write(
29
+ "Models source code available on [GitHub](https://github.com/boun-tabi-LMG/turkish-lm-tuner)"
30
+ )
31
+
images/turna-logo.png ADDED
pages/home.py ADDED
@@ -0,0 +1,14 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ import streamlit as st
2
+ import awesome_streamlit as ast
3
+
4
+
5
+ def write():
6
+
7
+ st.markdown(
8
+ """
9
+ # ![turna-logo](images/turna-logo.png?display=inline-block) TURNA: A Turkish Encoder-Decoder Language Model for Enhanced Understanding and Generation
10
+
11
+ Check the **Navigation bar** to test our models:
12
+ - TURNA: a 1.1B parameter Turkish encoder-decoder language model
13
+ """
14
+ )
pages/turna.py ADDED
File without changes