Spaces:
Runtime error
Runtime error
Update app.py
Browse files
app.py
CHANGED
@@ -60,10 +60,9 @@ def get_valid_epitran_mappings_list():
|
|
60 |
@st.cache
|
61 |
def get_epitran(selected_mapping):
|
62 |
if selected_mapping == "cmn-Hans":
|
63 |
-
st.info("Chinese requires a special dictionary. Downloading now")
|
64 |
epitran.download.cedict()
|
65 |
|
66 |
-
st.info("attempting to instantiate epitran transliterator for your language/script")
|
67 |
epi = epitran.Epitran(selected_mapping)
|
68 |
return epi
|
69 |
|
@@ -86,6 +85,7 @@ if __name__ == "__main__":
|
|
86 |
description = get_lang_description_from_mapping_name(selected_mapping)
|
87 |
st.write(f"Selected input language/script: {description}")
|
88 |
|
|
|
89 |
epi = get_epitran(selected_mapping)
|
90 |
|
91 |
examples = defaultdict(lambda: 'Try typing some words in the language you chose, and they will be transliterated.')
|
|
|
60 |
@st.cache
|
61 |
def get_epitran(selected_mapping):
|
62 |
if selected_mapping == "cmn-Hans":
|
63 |
+
# st.info("Chinese requires a special dictionary. Downloading now")
|
64 |
epitran.download.cedict()
|
65 |
|
|
|
66 |
epi = epitran.Epitran(selected_mapping)
|
67 |
return epi
|
68 |
|
|
|
85 |
description = get_lang_description_from_mapping_name(selected_mapping)
|
86 |
st.write(f"Selected input language/script: {description}")
|
87 |
|
88 |
+
st.info("attempting to instantiate epitran transliterator for your language/script")
|
89 |
epi = get_epitran(selected_mapping)
|
90 |
|
91 |
examples = defaultdict(lambda: 'Try typing some words in the language you chose, and they will be transliterated.')
|