UzSyllable / app.py
ulugbeksalaev's picture
Update app.py
9b9ab97 verified
raw
history blame contribute delete
585 Bytes
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))