awacke1 commited on
Commit
e206bb2
·
1 Parent(s): 50563e5

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -1
app.py CHANGED
@@ -9,7 +9,7 @@ nltk.download('punkt')
9
  nltk.download('stopwords')
10
 
11
  def remove_timestamps(text):
12
- return re.sub(r'\d{1,2}:\d{2}\n', '', text)
13
 
14
  def process_text(text):
15
  lines = text.split("\n")
 
9
  nltk.download('stopwords')
10
 
11
  def remove_timestamps(text):
12
+ return re.sub(r'\d{1,2}:\d{2}\n.*\n', '', text) # Updated regex pattern
13
 
14
  def process_text(text):
15
  lines = text.split("\n")