From f5256fc62f933168c93fec5dd5bc52c7e07b7191 Mon Sep 17 00:00:00 2001 From: makaveli10 Date: Tue, 13 Jan 2026 16:34:04 +0530 Subject: [PATCH] feat: support HuggingFace model IDs for faster_whisper_custom_model_path Previously, the server only accepted local file paths for custom Faster Whisper models. This change allows passing HuggingFace repo IDs which are automatically downloaded and converted to CTranslate2 format by the backend if not already in CTranslate2 format. Signed-off-by: makaveli10 --- whisper_live/server.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/whisper_live/server.py b/whisper_live/server.py index 47a4543..c2e01de 100644 --- a/whisper_live/server.py +++ b/whisper_live/server.py @@ -414,7 +414,8 @@ class TranscriptionServer: self.cache_path = cache_path self.client_manager = ClientManager(max_clients, max_connection_time) if faster_whisper_custom_model_path is not None and not os.path.exists(faster_whisper_custom_model_path): - raise ValueError(f"Custom faster_whisper model '{faster_whisper_custom_model_path}' is not a valid path.") + if "/" not in faster_whisper_custom_model_path: + raise ValueError(f"Custom faster_whisper model '{faster_whisper_custom_model_path}' is not a valid path or HuggingFace model.") if whisper_tensorrt_path is not None and not os.path.exists(whisper_tensorrt_path): raise ValueError(f"TensorRT model '{whisper_tensorrt_path}' is not a valid path.") if single_model: