DebasishDhal99 commited on
Commit
87438c8
·
1 Parent(s): b2fcc02

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -8
app.py CHANGED
@@ -105,19 +105,13 @@ with tab4:
105
  "Bosna je najbolja zemlja na svijetu"]
106
 
107
 
108
- selected_example_sr = st.selectbox('Choose an example as demo', ['None',"Generate a random sentence (Serbian)", "Generate a random sentence (Bosnian)", "Generate a random sentence (Croat)"]+serbian_examples)
109
 
110
  if selected_example_sr != 'None':
111
  input_string_serbian = selected_example_sr
112
 
113
- if selected_example_sr == "Generate a random sentence (Serbian)":
114
  input_string_serbian = random_sentence("sr")
115
-
116
- if selected_example_sr == "Generate a random sentence (Bosnian)":
117
- input_string_serbian = random_sentence("bos")
118
-
119
- if selected_example_sr == "Generate a random sentence (Croat)":
120
- input_string_serbian = random_sentence("hr")
121
 
122
  if st.button("Transliterate Serbo-Croatian-Bosnian"):
123
  if input_string_serbian:
 
105
  "Bosna je najbolja zemlja na svijetu"]
106
 
107
 
108
+ selected_example_sr = st.selectbox('Choose an example as demo', ['None',"Generate a random sentence"]+serbian_examples)
109
 
110
  if selected_example_sr != 'None':
111
  input_string_serbian = selected_example_sr
112
 
113
+ if selected_example_sr == "Generate a random sentence":
114
  input_string_serbian = random_sentence("sr")
 
 
 
 
 
 
115
 
116
  if st.button("Transliterate Serbo-Croatian-Bosnian"):
117
  if input_string_serbian: