Update modules/whisper/whisper_base.py
Browse files410 unmodified lines411412413414415416417418419420421422423410 unmodified lines# Add filename & info as first linetitle_line = ""if file_count_total > 1 and file_count > 1: title_line += "■"if add_timestamp_preview: title_line += "□"if diarize_speakers: title_line += "□"title_line += ("\t")*3+f'Media file:\t{info["input_source_file"]}'title_line += ("\t")*3f'\nLanguage:\t{info["lang"]} (probability {info["lang_prob"]}%)'if params.is_translate: title_line += ("\t")*3f'\nTranslation:\t{info["transcription"]} (Handled by OpenAI Whisper)'if translate_output: title_line += ("\t")*3f'\nTranslation:\t{info["translation"]} (Handled by Facebook NLLB)'title_line += "■"temp_subtitle = info["subtitle"].rstrip("\n")410 unmodified lines411412413414415416417418419420421422423424410 unmodified lines# Add filename & info as first linetitle_line = ""tabbed_space = ("\t")*3if file_count_total > 1 and file_count > 1: title_line += "■"if add_timestamp_preview: title_line += "□"if diarize_speakers: title_line += "□"title_line += f'{tabbed_space}Media file:\t{info["input_source_file"]}'title_line += f'\n{tabbed_space}Language:\t{info["lang"]} (probability {info["lang_prob"]}%)'if params.is_translate: title_line += f'\n{tabbed_space}Translation:\t{info["transcription"]} (Handled by OpenAI Whisper)'if translate_output: title_line += f'\n{tabbed_space}Translation:\t{info["translation"]} (Handled by Facebook NLLB)'title_line += "■"temp_subtitle = info["subtitle"].rstrip("\n")
modules/whisper/whisper_base.py+5-4