import streamlit as st from polish import polish_sentence_to_latin st.title("Language Transliteration Interface") input_string = st.text_input("Enter a Polish word/sentence to transliterate :") example1 = "Dziękuję bardzo!" # Example 1 example2 = "Wszystkiego najlepszego!" # Example 2 example3 = "Jarosław, Przemyśl" selected_example = st.selectbox("Select an example:", [example 1, example2, example3]) if selected_example == example1: input_string = example1 elif selected_example == example2: input_string = example2 elif selected_example == example3: input_string = example3 if st.button("Transliterate"): if input_string: output_string = polish_sentence_to_latin(input_string) st.subheader("Transliterated Output:") st.write(output_string) else: st.warning("Please enter a string.")