DebasishDhal99 commited on
Commit
4c6968c
·
1 Parent(s): d403d33

Adding few examples as an option

Browse files
Files changed (1) hide show
  1. app.py +12 -0
app.py CHANGED
@@ -5,8 +5,20 @@ 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)
 
5
 
6
  input_string = st.text_input("Enter a Polish word/sentence to transliterate :")
7
 
8
+ example1 = "Dziękuję bardzo!" # Example 1
9
+ example2 = "Wszystkiego najlepszego!" # Example 2
10
+ example3 = "Jarosław, Przemyśl"
11
 
12
+ selected_example = st.selectbox("Select an example:", ["None", "Example 1", "Example 2", "Example3"])
13
 
14
+ if selected_example == "Example 1":
15
+ input_string = example1
16
+ elif selected_example == "Example 2":
17
+ input_string = example2
18
+ elif selected_example == "Example 2":
19
+ input_string = example3
20
+
21
+
22
  if st.button("Transliterate"):
23
  if input_string:
24
  output_string = polish_sentence_to_latin(input_string)