ECUiVADE commited on
Commit
b8ce246
1 Parent(s): a5a598a

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, "")
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("|","")
101
  return cleaned_text
102
 
103
  def upload_to_google_drive(self): # Method to upload the current chat log to Google Drive