ECUiVADE commited on
Commit
6ebd68d
·
verified ·
1 Parent(s): ea5a4b0

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -1
app.py CHANGED
@@ -94,7 +94,7 @@ class ChatbotAPP:
94
  def strip_text(self, text):
95
  # Pattern to match text inside parentheses or angle brackets, any text following angle brackets,
96
  # new line characters, and anything after ',', '<', or '|'
97
- pattern = r"\(.*?\)|<.*?>.*|\n|<.*|\|.*"
98
 
99
  # Use re.sub() to replace the matched text with an empty string
100
  cleaned_text = re.sub(pattern, "", text)
 
94
  def strip_text(self, text):
95
  # Pattern to match text inside parentheses or angle brackets, any text following angle brackets,
96
  # new line characters, and anything after ',', '<', or '|'
97
+ pattern = r"\(.*?\)|<.*?>.*|\n|<.*|\|.*|\s{3,}"
98
 
99
  # Use re.sub() to replace the matched text with an empty string
100
  cleaned_text = re.sub(pattern, "", text)