Spaces:
Sleeping
Sleeping
Update app.py
Browse files
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")
|