Spaces:
Runtime error
Runtime error
Update app.py
Browse files
app.py
CHANGED
@@ -59,7 +59,7 @@ if __name__ == "__main__":
|
|
59 |
|
60 |
selected_mapping = st.selectbox("Select input language/script:", valid_epitran_mappings)
|
61 |
description = get_lang_description_from_mapping_name(selected_mapping)
|
62 |
-
st.write(f"Selected input language/script: {description
|
63 |
|
64 |
|
65 |
# iso_lang_code = st.text_input(
|
@@ -79,7 +79,7 @@ if __name__ == "__main__":
|
|
79 |
# combined_code = "-".join([iso_lang_code, iso_script_code])
|
80 |
# st.write(f"Combined code: {combined_code}")
|
81 |
st.info("attempting to instantiate epitran transliterator for your language/script")
|
82 |
-
epi = epitran.Epitran(selected_mapping
|
83 |
|
84 |
st.info(f"transliterating `{input_text}`\n\tusing {selected_mapping}...")
|
85 |
transliteration = epi.transliterate(input_text)
|
|
|
59 |
|
60 |
selected_mapping = st.selectbox("Select input language/script:", valid_epitran_mappings)
|
61 |
description = get_lang_description_from_mapping_name(selected_mapping)
|
62 |
+
st.write(f"Selected input language/script: {description}")
|
63 |
|
64 |
|
65 |
# iso_lang_code = st.text_input(
|
|
|
79 |
# combined_code = "-".join([iso_lang_code, iso_script_code])
|
80 |
# st.write(f"Combined code: {combined_code}")
|
81 |
st.info("attempting to instantiate epitran transliterator for your language/script")
|
82 |
+
epi = epitran.Epitran(selected_mapping)
|
83 |
|
84 |
st.info(f"transliterating `{input_text}`\n\tusing {selected_mapping}...")
|
85 |
transliteration = epi.transliterate(input_text)
|