Spaces:
Runtime error
Runtime error
fix another undefined variable
Browse files
app.py
CHANGED
|
@@ -73,7 +73,10 @@ if __name__ == "__main__":
|
|
| 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:",
|
|
|
|
|
|
|
|
|
|
| 77 |
|
| 78 |
|
| 79 |
description = get_lang_description_from_mapping_name(selected_mapping)
|
|
|
|
| 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:",
|
| 77 |
+
valid_epitran_mappings,
|
| 78 |
+
index=index_of_desired_default,
|
| 79 |
+
format_func=get_lang_description_from_mapping_name)
|
| 80 |
|
| 81 |
|
| 82 |
description = get_lang_description_from_mapping_name(selected_mapping)
|