qgyd2021 commited on
Commit
57fded5
1 Parent(s): f0c908f

[update]edit main

Browse files
Files changed (1) hide show
  1. main.py +1 -0
main.py CHANGED
@@ -111,6 +111,7 @@ def main():
111
  output = output.lstrip("[SEP] ,.!?")
112
  output = output.replace("[SEP]", "\n")
113
  output = re.sub(r"([,。!?\u4e00-\u9fa5]) ([,。!?\u4e00-\u9fa5])", repl, output)
 
114
 
115
  output_text_box.value += output
116
  yield output
 
111
  output = output.lstrip("[SEP] ,.!?")
112
  output = output.replace("[SEP]", "\n")
113
  output = re.sub(r"([,。!?\u4e00-\u9fa5]) ([,。!?\u4e00-\u9fa5])", repl, output)
114
+ output = output.strip()
115
 
116
  output_text_box.value += output
117
  yield output