File size: 585 Bytes
089c8cc
572d796
089c8cc
 
 
 
 
 
 
 
 
 
 
 
 
 
 
9b9ab97
089c8cc
 
 
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
import streamlit as st
from UzSyllable import syllables, count, hyphenation

st.title('Uzbek Syllabification')

type = st.radio(
    "Choose Task:",
    ["Syllables", "Hyphenation", "Count Syllables"],
    horizontal=True,
    index=None,
)

if type == "Syllables":
    text = st.text_input('Word Input', 'Maktabdagi')
    st.subheader(syllables(text))
elif type == "Hyphenation":
    text = st.text_input('Word Input', 'Maktabdagi')
    st.subheader(hyphenation(text))
elif type == "Count Syllables":
    text = st.text_input('Word Input', 'Maktabdagi')
    st.subheader(count(text))