ldhldh commited on
Commit
21c3384
Β·
1 Parent(s): ed1aa4b

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -1
app.py CHANGED
@@ -57,7 +57,8 @@ def chat(x):
57
  outout = re.sub("[ν•˜ν•˜]", "γ…Žγ…Ž", output)
58
  output = output.split('<|endoftext|>')[0]
59
  output = output.split('\n')[0]
60
- output = re.sub('[=+#/\:@*\"β€»γ†γ€β€˜|\\\<\>\(\)\[\]`\'…》\”\β€œ\’·]', ' ', output)
 
61
  return output
62
 
63
  def yn(x):
 
57
  outout = re.sub("[ν•˜ν•˜]", "γ…Žγ…Ž", output)
58
  output = output.split('<|endoftext|>')[0]
59
  output = output.split('\n')[0]
60
+ output = re.sub()('[=+#/\:@*\"β€»γ†γ€β€˜|\\\<\>\(\)\[\]`\'…》\”\β€œ\’·]', ' ', output)
61
+ output = re.sub('[a-zA-Z]',' ',output)
62
  return output
63
 
64
  def yn(x):