kertser commited on
Commit
5193efa
1 Parent(s): c7e44a5

Update WarBot.py

Browse files
Files changed (1) hide show
  1. WarBot.py +1 -0
WarBot.py CHANGED
@@ -136,6 +136,7 @@ def get_response(quote:str,model,tokenizer,model_punct,temperature=0.2):
136
  response = re.sub(r',+', ',', response) # Replace multi-commas with single one
137
  response = re.sub(r'-+', ',', response) # Replace multi-dashes with single one
138
  response = re.sub(r'\.\?', '?', response) # Fix the .? issue
 
139
  response = re.sub(r'\.\!', '!', response) # Fix the .! issue
140
  response = re.sub(r'\.\,', ',', response) # Fix the ,. issue
141
  response = re.sub(r'\.\)', '.', response) # Fix the .) issue
 
136
  response = re.sub(r',+', ',', response) # Replace multi-commas with single one
137
  response = re.sub(r'-+', ',', response) # Replace multi-dashes with single one
138
  response = re.sub(r'\.\?', '?', response) # Fix the .? issue
139
+ response = re.sub(r'\,\?', '?', response) # Fix the ,? issue
140
  response = re.sub(r'\.\!', '!', response) # Fix the .! issue
141
  response = re.sub(r'\.\,', ',', response) # Fix the ,. issue
142
  response = re.sub(r'\.\)', '.', response) # Fix the .) issue