ECUiVADE commited on
Commit
61d166a
1 Parent(s): b8ce246

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -1
app.py CHANGED
@@ -97,7 +97,7 @@ class ChatbotAPP:
97
  pattern = r"\(.*?\)|<.*?>.*|\n|\s{3,}"
98
  # Use re.sub() to replace the matched text with an empty string
99
  cleaned_text = re.sub(pattern, "", text)
100
- cleaned_text = cleaned_text.replace("im_start", "").replace("im_end", "").replace("<","").replace("|","")
101
  return cleaned_text
102
 
103
  def upload_to_google_drive(self): # Method to upload the current chat log to Google Drive
 
97
  pattern = r"\(.*?\)|<.*?>.*|\n|\s{3,}"
98
  # Use re.sub() to replace the matched text with an empty string
99
  cleaned_text = re.sub(pattern, "", text)
100
+ cleaned_text = cleaned_text.replace("im_start", "").replace("im_end", "").replace("<","").replace("|","").replace(":","")
101
  return cleaned_text
102
 
103
  def upload_to_google_drive(self): # Method to upload the current chat log to Google Drive