LAP-DEV commited on
Commit
a1c52e6
·
verified ·
1 Parent(s): ac7a31c

Update modules/whisper/whisper_base.py

Browse files
Files changed (1) hide show
  1. modules/whisper/whisper_base.py +7 -1
modules/whisper/whisper_base.py CHANGED
@@ -347,7 +347,13 @@ class WhisperBase(ABC):
347
  total_info += f"\nTotal processing time: {self.format_time((time_end-time_start).total_seconds())}"
348
 
349
  if params.is_translate or translate_output:
350
- total_info += "\n\nNote: translation handled by OpenAI Whisper ¹ or Facebook NLLB ²"
 
 
 
 
 
 
351
 
352
  result_str = total_result.rstrip("\n")
353
  result_file_path = [info['path'] for info in files_to_download.values()]
 
347
  total_info += f"\nTotal processing time: {self.format_time((time_end-time_start).total_seconds())}"
348
 
349
  if params.is_translate or translate_output:
350
+ #total_info += "\n\nNote: translation handled by OpenAI Whisper ¹ or Facebook NLLB ²"
351
+ if params.is_translate and not translate_output:
352
+ total_info += "\n\nNote: translation handled by OpenAI Whisper"
353
+ if not params.is_translate and translate_output:
354
+ total_info += "\n\nNote: translation handled by Facebook NLLB"
355
+ if params.is_translate and translate_output:
356
+ total_info += "\n\nNote: translation handled by OpenAI Whisper or Facebook NLLB"
357
 
358
  result_str = total_result.rstrip("\n")
359
  result_file_path = [info['path'] for info in files_to_download.values()]