chore: remove redundant variable & improve load_model function documentation (#1197)
* Remove redundant variable * Improve function documentation
This commit is contained in:
@@ -319,7 +319,8 @@ def load_model(
|
|||||||
whisper_arch - The name of the Whisper model to load.
|
whisper_arch - The name of the Whisper model to load.
|
||||||
device - The device to load the model on.
|
device - The device to load the model on.
|
||||||
compute_type - The compute type to use for the model.
|
compute_type - The compute type to use for the model.
|
||||||
vad_method - The vad method to use. vad_model has higher priority if is not None.
|
vad_model - The vad model to manually assign.
|
||||||
|
vad_method - The vad method to use. vad_model has a higher priority if it is not None.
|
||||||
options - A dictionary of options to use for the model.
|
options - A dictionary of options to use for the model.
|
||||||
language - The language of the model. (use English for now)
|
language - The language of the model. (use English for now)
|
||||||
model - The WhisperModel instance to use.
|
model - The WhisperModel instance to use.
|
||||||
|
|||||||
@@ -119,7 +119,6 @@ def transcribe_task(args: dict, parser: argparse.ArgumentParser):
|
|||||||
|
|
||||||
# Part 1: VAD & ASR Loop
|
# Part 1: VAD & ASR Loop
|
||||||
results = []
|
results = []
|
||||||
tmp_results = []
|
|
||||||
# model = load_model(model_name, device=device, download_root=model_dir)
|
# model = load_model(model_name, device=device, download_root=model_dir)
|
||||||
model = load_model(
|
model = load_model(
|
||||||
model_name,
|
model_name,
|
||||||
|
|||||||
Reference in New Issue
Block a user