Spaces:
Running
Running
Update app.py
Browse files
app.py
CHANGED
@@ -25,7 +25,7 @@ def process_srt(file_path, podcast_name, podcast_episode):
|
|
25 |
|
26 |
for entry in entries:
|
27 |
lines = entry.split('\n')
|
28 |
-
id = int(float(lines[0]))
|
29 |
timestamp = lines[1]
|
30 |
timestamp_start, timestamp_end = timestamp.split(" --> ")
|
31 |
transcript = ' '.join(lines[2:])
|
|
|
25 |
|
26 |
for entry in entries:
|
27 |
lines = entry.split('\n')
|
28 |
+
id = int(float(lines[0].replace('\ufeff', '').strip()))
|
29 |
timestamp = lines[1]
|
30 |
timestamp_start, timestamp_end = timestamp.split(" --> ")
|
31 |
transcript = ' '.join(lines[2:])
|