Spaces:
Sleeping
Sleeping
root
commited on
Commit
•
698fd4d
1
Parent(s):
6051f87
resolve start space problem in srt
Browse filesFormer-commit-id: 75087aaf862971821be4ce5f63fefb2856884d54
SRT.py
CHANGED
@@ -26,7 +26,7 @@ class SRT_segment(object):
|
|
26 |
self.end_time_str = str(0)+str(self.end_time).split('.')[0]+',000'
|
27 |
else:
|
28 |
self.end_time_str = str(0)+str(self.end_time).split('.')[0]+','+str(self.end_time).split('.')[1][:3]
|
29 |
-
self.source_text = segment['text']
|
30 |
self.duration = f"{self.start_time_str} --> {self.end_time_str}"
|
31 |
self.translation = ""
|
32 |
|
|
|
26 |
self.end_time_str = str(0)+str(self.end_time).split('.')[0]+',000'
|
27 |
else:
|
28 |
self.end_time_str = str(0)+str(self.end_time).split('.')[0]+','+str(self.end_time).split('.')[1][:3]
|
29 |
+
self.source_text = segment['text'].lstrip()
|
30 |
self.duration = f"{self.start_time_str} --> {self.end_time_str}"
|
31 |
self.translation = ""
|
32 |
|