Spaces:
Runtime error
Runtime error
Fix CLI
Browse files
cli.py
CHANGED
@@ -76,8 +76,8 @@ def cli():
|
|
76 |
vad_prompt_window = args.pop("vad_prompt_window")
|
77 |
vad_cpu_cores = args.pop("vad_cpu_cores")
|
78 |
|
79 |
-
model = WhisperContainer(model_name, device=device, download_root=model_dir
|
80 |
-
transcriber = WhisperTranscriber(delete_uploaded_files=False)
|
81 |
transcriber.set_parallel_devices(args.pop("vad_parallel_devices"))
|
82 |
|
83 |
if (transcriber._has_parallel_devices()):
|
|
|
76 |
vad_prompt_window = args.pop("vad_prompt_window")
|
77 |
vad_cpu_cores = args.pop("vad_cpu_cores")
|
78 |
|
79 |
+
model = WhisperContainer(model_name, device=device, download_root=model_dir)
|
80 |
+
transcriber = WhisperTranscriber(delete_uploaded_files=False, vad_cpu_cores=vad_cpu_cores)
|
81 |
transcriber.set_parallel_devices(args.pop("vad_parallel_devices"))
|
82 |
|
83 |
if (transcriber._has_parallel_devices()):
|