ldhldh commited on
Commit
855cd42
β€’
1 Parent(s): 8bd8f14

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -2
app.py CHANGED
@@ -61,9 +61,9 @@ def chat(x):
61
  output = result[len(x)-4:]
62
  output = re.sub('ν•˜ν•˜','γ…Žγ…Ž', output)
63
  output = output.split('띓')[0]
64
- output = output.split('<|endoftext|>')[0]
65
  output = re.sub('[=+#/\:@*\"β€»γ†γ€β€˜|\\\<\>\(\)\[\]`\'…》\”\β€œ\’·]', ' ', output)
66
- output = re.sub('[a-zA-Z]',' ',output)
67
 
68
  return output
69
 
 
61
  output = result[len(x)-4:]
62
  output = re.sub('ν•˜ν•˜','γ…Žγ…Ž', output)
63
  output = output.split('띓')[0]
64
+ output = output.split('endoftext')[0]
65
  output = re.sub('[=+#/\:@*\"β€»γ†γ€β€˜|\\\<\>\(\)\[\]`\'…》\”\β€œ\’·]', ' ', output)
66
+ #output = re.sub('[a-zA-Z]',' ',output)
67
 
68
  return output
69