LAP-DEV commited on
Commit
de83212
·
verified ·
1 Parent(s): 211f555

Update modules/utils/subtitle_manager.py

Browse files
Files changed (1) hide show
  1. modules/utils/subtitle_manager.py +2 -2
modules/utils/subtitle_manager.py CHANGED
@@ -115,7 +115,7 @@ def get_txt(segments):
115
  speaker_text = (segment['text']).strip()
116
  output += f"{timeformat_txt(segment['start'])}\t{speaker_text}\n"
117
 
118
- return output.rstrip("\n")
119
 
120
  def get_plaintext(segments):
121
  bDiarization = False
@@ -136,7 +136,7 @@ def get_plaintext(segments):
136
  speaker_text = (segment['text']).strip()
137
  output += f"{speaker_text}\n"
138
 
139
- return output.rstrip("\n")
140
 
141
  def parse_srt(file_path):
142
  """Reads SRT file and returns as dict"""
 
115
  speaker_text = (segment['text']).strip()
116
  output += f"{timeformat_txt(segment['start'])}\t{speaker_text}\n"
117
 
118
+ return output
119
 
120
  def get_plaintext(segments):
121
  bDiarization = False
 
136
  speaker_text = (segment['text']).strip()
137
  output += f"{speaker_text}\n"
138
 
139
+ return output
140
 
141
  def parse_srt(file_path):
142
  """Reads SRT file and returns as dict"""