Spaces:
Runtime error
Runtime error
Trying to fix UnhashableTypeError
Browse files
app.py
CHANGED
@@ -86,7 +86,7 @@ if __name__ == "__main__":
|
|
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.')
|
92 |
examples['cmn-Hans'] = '太初有道,道与神同在,道就是神。'
|
|
|
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(str(selected_mapping))
|
90 |
|
91 |
examples = defaultdict(lambda: 'Try typing some words in the language you chose, and they will be transliterated.')
|
92 |
examples['cmn-Hans'] = '太初有道,道与神同在,道就是神。'
|