versae's picture
Moving the OpenAI version to a folder with its SHA256
f0463f7
raw
history blame
362 Bytes
import whisper
whisper._MODELS["NbAiLab/whisper-large-sme"] = "https://huggingface.co/NbAiLab/whisper-large-sme/resolve/main/whisper-large-sme.pt"
whisper.tokenizer.LANGUAGES["fi"] = "sami"
whisper.tokenizer.TO_LANGUAGE_CODE["sme"] = "fi"
whisper.tokenizer.TO_LANGUAGE_CODE["sami"] = "fi"
from whisper.transcribe import cli
if __name__ == "__main__":
cli()