Spaces:
Runtime error
Runtime error
Debug simplified Chinese conversion failure
Browse files
app.py
CHANGED
@@ -71,7 +71,7 @@ def helper_text(text_input,radio=None):
|
|
71 |
chinese_type = "simplified"
|
72 |
|
73 |
if hanzidentifier.is_traditional(text_input):
|
74 |
-
text_input = chinese_converter.
|
75 |
chinese_type = "traditional"
|
76 |
|
77 |
text_input = re.sub(r'hint',"猜",text_input,flags=re.I)
|
|
|
71 |
chinese_type = "simplified"
|
72 |
|
73 |
if hanzidentifier.is_traditional(text_input):
|
74 |
+
text_input = chinese_converter.to_simplified(text_input)
|
75 |
chinese_type = "traditional"
|
76 |
|
77 |
text_input = re.sub(r'hint',"猜",text_input,flags=re.I)
|