Update modules/whisper/whisper_base.py
Browse files
modules/whisper/whisper_base.py
CHANGED
|
@@ -383,12 +383,12 @@ class WhisperBase(ABC):
|
|
| 383 |
|
| 384 |
if params.is_translate:
|
| 385 |
#total_info += f'Translation:\t{info["transcription"]}\n\t⤷ Handled by OpenAI Whisper\n'
|
| 386 |
-
total_info += "Translation:"+str(info["transcription"])+"\n"
|
| 387 |
total_info += ("").ljust(8)+"⤷ Handled by OpenAI Whisper\n"
|
| 388 |
|
| 389 |
if translate_output:
|
| 390 |
#total_info += f'Translation:\t{info["translation"]}\n\t⤷ Handled by Facebook NLLB\n'
|
| 391 |
-
total_info += "Translation:"+str(info["translation"])+"\n"
|
| 392 |
total_info += ("").ljust(8)+"⤷ Handled by Facebook NLLB\n"
|
| 393 |
|
| 394 |
time_end = datetime.now()
|
|
|
|
| 383 |
|
| 384 |
if params.is_translate:
|
| 385 |
#total_info += f'Translation:\t{info["transcription"]}\n\t⤷ Handled by OpenAI Whisper\n'
|
| 386 |
+
total_info += ("Translation:").ljust(15)+str(info["transcription"])+"\n"
|
| 387 |
total_info += ("").ljust(8)+"⤷ Handled by OpenAI Whisper\n"
|
| 388 |
|
| 389 |
if translate_output:
|
| 390 |
#total_info += f'Translation:\t{info["translation"]}\n\t⤷ Handled by Facebook NLLB\n'
|
| 391 |
+
total_info += ("Translation:").ljust(15)+str(info["translation"])+"\n"
|
| 392 |
total_info += ("").ljust(8)+"⤷ Handled by Facebook NLLB\n"
|
| 393 |
|
| 394 |
time_end = datetime.now()
|