Update modules/whisper/whisper_base.py
Browse files
modules/whisper/whisper_base.py
CHANGED
|
@@ -260,13 +260,7 @@ class WhisperBase(ABC):
|
|
| 260 |
|
| 261 |
|
| 262 |
# Translate the trandscribed segments
|
| 263 |
-
|
| 264 |
-
test = TranslationBase.translate_text(transcribed_segments,"facebook/nllb-200-distilled-600M","English","Dutch")
|
| 265 |
-
print(test)
|
| 266 |
-
except Exception as e:
|
| 267 |
-
print(f"Error: {str(e)}")
|
| 268 |
-
finally:
|
| 269 |
-
print("Continue...")
|
| 270 |
|
| 271 |
## Get preview as txt
|
| 272 |
file_name, file_ext = os.path.splitext(os.path.basename(file))
|
|
|
|
| 260 |
|
| 261 |
|
| 262 |
# Translate the trandscribed segments
|
| 263 |
+
test = TranslationBase.translate_text(transcribed_segments,"facebook/nllb-200-distilled-600M","English","Dutch")
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 264 |
|
| 265 |
## Get preview as txt
|
| 266 |
file_name, file_ext = os.path.splitext(os.path.basename(file))
|