LAP-DEV commited on
Commit
94aa993
·
verified ·
1 Parent(s): 4908f02

Update modules/whisper/whisper_base.py

Browse files
Files changed (1) hide show
  1. modules/whisper/whisper_base.py +4 -4
modules/whisper/whisper_base.py CHANGED
@@ -419,10 +419,10 @@ class WhisperBase(ABC):
419
  temp_lines = info["subtitle"].splitlines()
420
  for temp_line in temp_lines:
421
  line_count += 1
422
- #if line_count==1:
423
- result_fixed += info["input_source_file"]+"\t"+temp_line
424
- #else:
425
- # result_fixed += "\t"+temp_line
426
  total_result += result_fixed
427
 
428
  total_time += info["time_for_task"]
 
419
  temp_lines = info["subtitle"].splitlines()
420
  for temp_line in temp_lines:
421
  line_count += 1
422
+ if line_count==1:
423
+ result_fixed += info["input_source_file"]+"\t"+temp_line+"\n"
424
+ else:
425
+ result_fixed += "\t"+temp_line+"\n"
426
  total_result += result_fixed
427
 
428
  total_time += info["time_for_task"]