From 72f1a651e238dd04dd3c813136111525eafa5ec8 Mon Sep 17 00:00:00 2001 From: Remixer Dec Date: Sun, 24 Nov 2024 22:46:36 +0400 Subject: [PATCH] Allow converting models from local directories --- whisper/convert.py | 5 ----- 1 file changed, 5 deletions(-) diff --git a/whisper/convert.py b/whisper/convert.py index 301fd5b4..7369fafa 100644 --- a/whisper/convert.py +++ b/whisper/convert.py @@ -174,11 +174,6 @@ def load_torch_weights_and_config( "*.txt", ], ) - else: - raise RuntimeError( - f"Model {name_or_path} is not found in {available_models()}," - "on Hugging Face or as a local path." - ) if name_or_path.endswith(".pt"): checkpoint = torch.load(name_or_path, map_location="cpu", weights_only=False)