DebasishDhal99
commited on
Commit
•
7439772
1
Parent(s):
5478a63
Create app.py
Browse files
app.py
ADDED
@@ -0,0 +1,16 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
import streamlit as st
|
2 |
+
from polish import polish_sentence_to_latin
|
3 |
+
|
4 |
+
st.title("Language Transliteration Interface")
|
5 |
+
|
6 |
+
input_string = st.text_input("Enter a Polish word/sentence to transliterate :")
|
7 |
+
|
8 |
+
|
9 |
+
|
10 |
+
if st.button("Transliterate"):
|
11 |
+
if input_string:
|
12 |
+
output_string = polish_sentence_to_latin(input_string)
|
13 |
+
st.subheader("Transliterated Output:")
|
14 |
+
st.write(output_string)
|
15 |
+
else:
|
16 |
+
st.warning("Please enter a string.")
|