Spaces:
Build error
Build error
| 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)) | |