Update modules/whisper/whisper_base.py
Browse files259 unmodified lines260261262263264265266267259 unmodified lines# Translate the trandscribed segmentstest = TranslationBase.translate_text(transcribed_segments,"facebook/nllb-200-distilled-600M","English","Dutch")print(test)## Get preview as txtfile_name, file_ext = os.path.splitext(os.path.basename(file))259 unmodified lines260261262263264265266267268269270271272259 unmodified lines# Translate the trandscribed segmentstry:test = TranslationBase.translate_text(transcribed_segments,"facebook/nllb-200-distilled-600M","English","Dutch")print(test)except Exception as e:print(f"Error: {str(e)}")finally:print("Continue...")## Get preview as txtfile_name, file_ext = os.path.splitext(os.path.basename(file))
modules/whisper/whisper_base.py+7-2