DebasishDhal99
commited on
Commit
·
1962c0b
1
Parent(s):
cd7cb7e
Input should also be shown when using random example method
Browse files
app.py
CHANGED
@@ -67,7 +67,10 @@ with tab1:
|
|
67 |
if input_string_polish:
|
68 |
output_string = polish_sentence_to_latin(input_string_polish)
|
69 |
st.subheader("Transliterated Output:")
|
70 |
-
|
|
|
|
|
|
|
71 |
else:
|
72 |
st.warning("Please enter a string.")
|
73 |
|
@@ -87,7 +90,10 @@ with tab2:
|
|
87 |
if input_string_hungarian:
|
88 |
output_string = hungarian_sentence_to_latin(input_string_hungarian)
|
89 |
st.subheader("Transliterated Output:")
|
90 |
-
|
|
|
|
|
|
|
91 |
else:
|
92 |
st.warning("Please enter a string.")
|
93 |
|
@@ -109,6 +115,9 @@ with tab3:
|
|
109 |
if input_string_turkish:
|
110 |
output_string = turkish_sentence_to_latin(input_string_turkish)
|
111 |
st.subheader("Transliterated Output:")
|
112 |
-
|
|
|
|
|
|
|
113 |
else:
|
114 |
st.warning("Please enter a string.")
|
|
|
67 |
if input_string_polish:
|
68 |
output_string = polish_sentence_to_latin(input_string_polish)
|
69 |
st.subheader("Transliterated Output:")
|
70 |
+
if selected_example_po == "Generate a random sentence" :
|
71 |
+
st.write("Polish:"+input_string_polish+'\nOutput:'+output_string)
|
72 |
+
else:
|
73 |
+
st.write(output_string)
|
74 |
else:
|
75 |
st.warning("Please enter a string.")
|
76 |
|
|
|
90 |
if input_string_hungarian:
|
91 |
output_string = hungarian_sentence_to_latin(input_string_hungarian)
|
92 |
st.subheader("Transliterated Output:")
|
93 |
+
if selected_example_hu == "Generate a random sentence" :
|
94 |
+
st.write("Hungarian:"+input_string_hungarian+'\nOutput:'+output_string)
|
95 |
+
else:
|
96 |
+
st.write(output_string)
|
97 |
else:
|
98 |
st.warning("Please enter a string.")
|
99 |
|
|
|
115 |
if input_string_turkish:
|
116 |
output_string = turkish_sentence_to_latin(input_string_turkish)
|
117 |
st.subheader("Transliterated Output:")
|
118 |
+
if selected_example_tu == "Generate a random sentence" :
|
119 |
+
st.write("Turkish:"+input_string_turkish+'\nOutput:'+output_string)
|
120 |
+
else:
|
121 |
+
st.write(output_string)
|
122 |
else:
|
123 |
st.warning("Please enter a string.")
|