Spaces:
Runtime error
Runtime error
Update app.py
Browse files
app.py
CHANGED
@@ -70,12 +70,14 @@ def get_valid_epitran_mappings_list():
|
|
70 |
st.write("Epitran is a library and tool for transliterating orthographic text as IPA (International Phonetic Alphabet), by Mortensen, David R. and Dalmia, Siddharth and Littell, Patrick.")
|
71 |
|
72 |
valid_epitran_mappings = get_valid_epitran_mappings_list()
|
73 |
-
|
|
|
|
|
74 |
st.write(f"It supports converting many writing sytems to IPA symbols, including approximately {len(valid_epitran_mappings)} languages/scripts, listed below:")
|
75 |
|
76 |
#st.write(valid_epitran_mappings)
|
77 |
|
78 |
-
selected_mapping = st.selectbox("Select input language/script:", valid_epitran_mappings, index=
|
79 |
|
80 |
|
81 |
description = get_lang_description_from_mapping_name(selected_mapping)
|
|
|
70 |
st.write("Epitran is a library and tool for transliterating orthographic text as IPA (International Phonetic Alphabet), by Mortensen, David R. and Dalmia, Siddharth and Littell, Patrick.")
|
71 |
|
72 |
valid_epitran_mappings = get_valid_epitran_mappings_list()
|
73 |
+
|
74 |
+
index_of_default_language = valid_epitran_mappings.index("swa-Latn")
|
75 |
+
|
76 |
st.write(f"It supports converting many writing sytems to IPA symbols, including approximately {len(valid_epitran_mappings)} languages/scripts, listed below:")
|
77 |
|
78 |
#st.write(valid_epitran_mappings)
|
79 |
|
80 |
+
selected_mapping = st.selectbox("Select input language/script:", valid_epitran_mappings, index=index_of_default_language)
|
81 |
|
82 |
|
83 |
description = get_lang_description_from_mapping_name(selected_mapping)
|