From 995454807592b0e06ebf7460c9331a41e47d8bcf Mon Sep 17 00:00:00 2001 From: Kiran Lonikar Date: Sun, 6 Jul 2025 16:10:49 +0530 Subject: [PATCH] issue 371 model name is of form namespace/repo_name and not os path. --- whisper_live/server.py | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/whisper_live/server.py b/whisper_live/server.py index 25ce403..b7d800e 100644 --- a/whisper_live/server.py +++ b/whisper_live/server.py @@ -216,7 +216,8 @@ class TranscriptionServer: try: if self.backend.is_faster_whisper(): from whisper_live.backend.faster_whisper_backend import ServeClientFasterWhisper - if faster_whisper_custom_model_path is not None and os.path.exists(faster_whisper_custom_model_path): + # model is of the form namespace/repo_name and not a filesystem path + if faster_whisper_custom_model_path is not None: # and os.path.exists(faster_whisper_custom_model_path): logging.info(f"Using custom model {faster_whisper_custom_model_path}") options["model"] = faster_whisper_custom_model_path client = ServeClientFasterWhisper( @@ -380,8 +381,8 @@ class TranscriptionServer: port (int): The port number to bind the server. """ self.cache_path = cache_path - 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 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 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: