Update WarBot.py
Browse files
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
|