Fix typing of local_files_only
This commit is contained in:
@@ -79,7 +79,7 @@ class WhisperModel:
|
||||
cpu_threads: int = 0,
|
||||
num_workers: int = 1,
|
||||
download_root: Optional[str] = None,
|
||||
local_files_only: Optional[bool] = False,
|
||||
local_files_only: bool = False,
|
||||
):
|
||||
"""Initializes the Whisper model.
|
||||
|
||||
|
||||
@@ -34,7 +34,7 @@ def get_logger():
|
||||
def download_model(
|
||||
size: str,
|
||||
output_dir: Optional[str] = None,
|
||||
local_files_only: Optional[bool] = False,
|
||||
local_files_only: bool = False,
|
||||
cache_dir: Optional[str] = None,
|
||||
):
|
||||
"""Downloads a CTranslate2 Whisper model from the Hugging Face Hub.
|
||||
|
||||
Reference in New Issue
Block a user