LAP-DEV commited on
Commit
1a1cc77
·
verified ·
1 Parent(s): 13a10f5

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
@@ -266,7 +266,7 @@ class WhisperBase(ABC):
266
  # Translate to English using Whisper built-in functionality
267
  transcription_note = ""
268
  if params.is_translate:
269
- transcription_note = "To English (using Whisper)"
270
  source_lang = "English"
271
 
272
  # Translate the transcribed segments
@@ -282,9 +282,9 @@ class WhisperBase(ABC):
282
  tgt_lang=target_lang,
283
  speaker_diarization=params.is_diarize
284
  )
285
- translation_note = "To " + target_lang + " (using Facebook NLLB)"
286
  else:
287
- translation_note = source_lang + " not supported (using Facebook NLLB)"
288
  else:
289
  translation_note = "Already in " + target_lang
290
 
 
266
  # Translate to English using Whisper built-in functionality
267
  transcription_note = ""
268
  if params.is_translate:
269
+ transcription_note = "To English (Whisper)"
270
  source_lang = "English"
271
 
272
  # Translate the transcribed segments
 
282
  tgt_lang=target_lang,
283
  speaker_diarization=params.is_diarize
284
  )
285
+ translation_note = "To " + target_lang + " (Facebook NLLB)"
286
  else:
287
+ translation_note = source_lang + " not supported (Facebook NLLB)"
288
  else:
289
  translation_note = "Already in " + target_lang
290