Skip to content

Commit b922e5e

Browse files
committed
NVIDIA NeMo diarization test module
1 parent 4ac3b7f commit b922e5e

File tree

1 file changed

+7
-1
lines changed

1 file changed

+7
-1
lines changed

src/utils/diarize_nemo.py

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1443,7 +1443,13 @@ def _tup(s):
14431443
except Exception:
14441444
pass
14451445

1446-
if not args.audio_filepath and not args.dry_run: parser.error("the following arguments are required: audio_filepath")
1446+
# if not args.audio_filepath and not args.dry_run: parser.error("the following arguments are required: audio_filepath")
1447+
1448+
if args.audio_filepath is None and not args.dry_run:
1449+
print(SCRIPT_BANNER, file=sys.stderr)
1450+
parser.print_usage(sys.stderr)
1451+
sys.exit(EXIT_CODE_CLI_ERROR)
1452+
14471453
args.device = (args.device or "").strip()
14481454

14491455
if not args.output_dir or args.output_dir == parser.get_default("output_dir"):

0 commit comments

Comments
 (0)