Skip to content

Commit

Permalink
Prevents device_index to read after its argument preventing for examp…
Browse files Browse the repository at this point in the history
…le to go before the filename. We only support one device ID
  • Loading branch information
jordimas committed Dec 29, 2023
1 parent c1d6e0f commit e4e3532
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions src/whisper_ctranslate2/whisper_ctranslate2.py
Original file line number Diff line number Diff line change
Expand Up @@ -165,10 +165,9 @@ def read_command_line():

computing_args.add_argument(
"--device_index",
nargs="*",
type=int,
default=0,
help="device IDs where to place this model on",
help="device ID where to place this model on",
)

computing_args.add_argument(
Expand Down

0 comments on commit e4e3532

Please sign in to comment.