remove commented code
This commit is contained in:
@@ -217,7 +217,7 @@ class TranscriptionServer:
|
|||||||
if self.backend.is_faster_whisper():
|
if self.backend.is_faster_whisper():
|
||||||
from whisper_live.backend.faster_whisper_backend import ServeClientFasterWhisper
|
from whisper_live.backend.faster_whisper_backend import ServeClientFasterWhisper
|
||||||
# model is of the form namespace/repo_name and not a filesystem 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):
|
if faster_whisper_custom_model_path is not None:
|
||||||
logging.info(f"Using custom model {faster_whisper_custom_model_path}")
|
logging.info(f"Using custom model {faster_whisper_custom_model_path}")
|
||||||
options["model"] = faster_whisper_custom_model_path
|
options["model"] = faster_whisper_custom_model_path
|
||||||
client = ServeClientFasterWhisper(
|
client = ServeClientFasterWhisper(
|
||||||
@@ -381,8 +381,6 @@ class TranscriptionServer:
|
|||||||
port (int): The port number to bind the server.
|
port (int): The port number to bind the server.
|
||||||
"""
|
"""
|
||||||
self.cache_path = cache_path
|
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 whisper_tensorrt_path is not None and not os.path.exists(whisper_tensorrt_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.")
|
raise ValueError(f"TensorRT model '{whisper_tensorrt_path}' is not a valid path.")
|
||||||
if single_model:
|
if single_model:
|
||||||
|
|||||||
Reference in New Issue
Block a user