LAP-DEV commited on
Commit
4e876ad
·
verified ·
1 Parent(s): f98973b

Update modules/whisper/whisper_base.py

Browse files
Files changed (1) hide show
  1. modules/whisper/whisper_base.py +3 -3
modules/whisper/whisper_base.py CHANGED
@@ -413,13 +413,13 @@ class WhisperBase(ABC):
413
  if process_multiple:
414
  temp_lines = {info["subtitle"]}
415
  line_count = 0
416
- result_fixed = []
417
  for temp_line in temp_lines:
418
  line_count += 1
419
  if line_count==1:
420
- result_fixed.append(info["input_source_file"]+"\t"+temp_line)
421
  else:
422
- result_fixed.append("\t"+temp_line)
423
  total_result += result_fixed
424
  else:
425
  total_result += f'{info["subtitle"]}'
 
413
  if process_multiple:
414
  temp_lines = {info["subtitle"]}
415
  line_count = 0
416
+ result_fixed = ""
417
  for temp_line in temp_lines:
418
  line_count += 1
419
  if line_count==1:
420
+ result_fixed += info["input_source_file"]+"\t"+temp_line
421
  else:
422
+ result_fixed += "\t"+temp_line
423
  total_result += result_fixed
424
  else:
425
  total_result += f'{info["subtitle"]}'