LAP-DEV commited on
Commit
19b955c
·
verified ·
1 Parent(s): b19c5e4

Update modules/whisper/whisper_base.py

Browse files
Files changed (1) hide show
  1. modules/whisper/whisper_base.py +2 -13
modules/whisper/whisper_base.py CHANGED
@@ -412,19 +412,8 @@ class WhisperBase(ABC):
412
  # Add blank line if multiple file processing
413
  if file_count > 1:
414
  total_info += f'\n'
415
-
416
- # Add filename as first column (first line only)
417
- line_count = 0
418
- result_fixed = ""
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"]
429
  total_info += f'Media file:\t{info["input_source_file"]}\nLanguage:\t{info["lang"]} (probability {info["lang_prob"]}%)\n'
430
 
 
412
  # Add blank line if multiple file processing
413
  if file_count > 1:
414
  total_info += f'\n'
415
+
416
+ total_result += info["subtitle"]
 
 
 
 
 
 
 
 
 
 
 
417
  total_time += info["time_for_task"]
418
  total_info += f'Media file:\t{info["input_source_file"]}\nLanguage:\t{info["lang"]} (probability {info["lang_prob"]}%)\n'
419