ytyeung commited on
Commit
727a002
·
1 Parent(s): 3d06557

Debug simplified Chinese conversion failure

Browse files
Files changed (1) hide show
  1. app.py +1 -1
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.to_traditional(text_input)
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)