Spaces:
Runtime error
Runtime error
fix error
Browse files
app.py
CHANGED
@@ -69,15 +69,10 @@ if __name__ == "__main__":
|
|
69 |
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.")
|
70 |
|
71 |
valid_epitran_mappings = get_valid_epitran_mappings_list()
|
72 |
-
|
73 |
|
74 |
-
|
75 |
-
|
76 |
-
index_of_desired_default = descriptions.index("Swahili")
|
77 |
st.write(f"It supports converting many writing sytems to IPA symbols, including approximately {len(valid_epitran_mappings)} languages/scripts, listed below:")
|
78 |
-
|
79 |
-
#st.write(valid_epitran_mappings)
|
80 |
-
|
81 |
selected_mapping = st.selectbox("Select input language/script:", valid_epitran_mappings, index=index_of_swa_latn, format_func=get_lang_description_from_mapping_name)
|
82 |
|
83 |
|
|
|
69 |
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.")
|
70 |
|
71 |
valid_epitran_mappings = get_valid_epitran_mappings_list()
|
72 |
+
#st.write(valid_epitran_mappings)
|
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 |
+
index_of_desired_default = valid_epitran_mappings.index("swa-Latn")
|
|
|
|
|
76 |
selected_mapping = st.selectbox("Select input language/script:", valid_epitran_mappings, index=index_of_swa_latn, format_func=get_lang_description_from_mapping_name)
|
77 |
|
78 |
|