ulugbeksalaev commited on
Commit
089c8cc
·
verified ·
1 Parent(s): 719d767

Create app.py

Browse files
Files changed (1) hide show
  1. app.py +21 -0
app.py ADDED
@@ -0,0 +1,21 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ import streamlit as st
2
+ from UzSyllable import syllables, count, line_break
3
+
4
+ st.title('Uzbek Syllabification')
5
+
6
+ type = st.radio(
7
+ "Choose Task:",
8
+ ["Syllables", "Hyphenation", "Count Syllables"],
9
+ horizontal=True,
10
+ index=None,
11
+ )
12
+
13
+ if type == "Syllables":
14
+ text = st.text_input('Word Input', 'Maktabdagi')
15
+ st.subheader(syllables(text))
16
+ elif type == "Hyphenation":
17
+ text = st.text_input('Word Input', 'Maktabdagi')
18
+ st.subheader(analyser(text))
19
+ elif type == "Count Syllables":
20
+ text = st.text_input('Word Input', 'Maktabdagi')
21
+ st.subheader(count(text))