Update modules/whisper/whisper_base.py
Browse files
modules/whisper/whisper_base.py
CHANGED
|
@@ -283,7 +283,7 @@ class WhisperBase(ABC):
|
|
| 283 |
if source_lang != target_lang:
|
| 284 |
translation_note = source_lang + " to " + target_lang
|
| 285 |
else:
|
| 286 |
-
translation_note = "Source & target
|
| 287 |
else:
|
| 288 |
translation_note = source_lang + " not supported"
|
| 289 |
|
|
@@ -331,7 +331,7 @@ class WhisperBase(ABC):
|
|
| 331 |
for file_name, info in files_info.items():
|
| 332 |
total_result += f'{info["subtitle"]}'
|
| 333 |
total_time += info["time_for_task"]
|
| 334 |
-
total_info += f'Input file: {info["input_source_file"]}\nLanguage: {info["lang"]} (
|
| 335 |
|
| 336 |
if params.is_translate:
|
| 337 |
total_info += f'Transcription: {info["transcription"]}\n'
|
|
|
|
| 283 |
if source_lang != target_lang:
|
| 284 |
translation_note = source_lang + " to " + target_lang
|
| 285 |
else:
|
| 286 |
+
translation_note = "Source & target are " + target_lang
|
| 287 |
else:
|
| 288 |
translation_note = source_lang + " not supported"
|
| 289 |
|
|
|
|
| 331 |
for file_name, info in files_info.items():
|
| 332 |
total_result += f'{info["subtitle"]}'
|
| 333 |
total_time += info["time_for_task"]
|
| 334 |
+
total_info += f'Input file: {info["input_source_file"]}\nLanguage: {info["lang"]} (Probability {info["lang_prob"]}%)\n'
|
| 335 |
|
| 336 |
if params.is_translate:
|
| 337 |
total_info += f'Transcription: {info["transcription"]}\n'
|