Fix typing for device_index argument
This commit is contained in:
@@ -59,7 +59,7 @@ class WhisperModel:
|
|||||||
self,
|
self,
|
||||||
model_path: str,
|
model_path: str,
|
||||||
device: str = "auto",
|
device: str = "auto",
|
||||||
device_index: int = 0,
|
device_index: Union[int, List[int]] = 0,
|
||||||
compute_type: str = "default",
|
compute_type: str = "default",
|
||||||
cpu_threads: int = 0,
|
cpu_threads: int = 0,
|
||||||
num_workers: int = 1,
|
num_workers: int = 1,
|
||||||
|
|||||||
Reference in New Issue
Block a user