Spaces:
Runtime error
Runtime error
Update app.py
Browse files
app.py
CHANGED
@@ -60,10 +60,11 @@ def get_valid_epitran_mappings_list():
|
|
60 |
#@st.cache epitran is an Unhashable Type
|
61 |
def get_epitran(selected_mapping):
|
62 |
if selected_mapping == "cmn-Hans":
|
63 |
-
|
64 |
epitran.download.cedict()
|
65 |
|
66 |
epi = epitran.Epitran(selected_mapping)
|
|
|
67 |
return epi
|
68 |
|
69 |
|
|
|
60 |
#@st.cache epitran is an Unhashable Type
|
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 |
+
st.info("...instantiated successfully")
|
68 |
return epi
|
69 |
|
70 |
|