From adaab81029eb5f53d9a40c94968bf143cbc5985c Mon Sep 17 00:00:00 2001 From: Remixer Dec Date: Mon, 25 Nov 2024 04:41:06 +0400 Subject: [PATCH] Allow converting models from local directories (#1118) --- 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)