From 9d1ef4e0cf4572607855dc08a77d20f24b026c16 Mon Sep 17 00:00:00 2001 From: Yuta Hayashibe Date: Sun, 2 Oct 2022 21:36:26 +0900 Subject: [PATCH] Refactoring --- whispering/cli.py | 38 +++++++++++++++++++------------------- 1 file changed, 19 insertions(+), 19 deletions(-) diff --git a/whispering/cli.py b/whispering/cli.py index 8c1641a..0e60596 100644 --- a/whispering/cli.py +++ b/whispering/cli.py @@ -133,13 +133,6 @@ def get_opts() -> argparse.Namespace: type=int, default=5, ) - group_ctx.add_argument( - "--num_block", - "-n", - type=int, - default=160, - help="Number of operation unit", - ) group_ctx.add_argument( "--temperature", "-t", @@ -151,24 +144,31 @@ def get_opts() -> argparse.Namespace: "--allow-padding", action="store_true", ) - group_ctx.add_argument( - "--no-progress", - action="store_true", - ) - group_ctx.add_argument( - "--no-vad", - action="store_true", - ) - group_ctx.add_argument( - "--mode", - choices=[v.value for v in Mode], - ) group_misc = parser.add_argument_group("Other options") group_misc.add_argument( "--mic", help="Set MIC device", ) + group_misc.add_argument( + "--num_block", + "-n", + type=int, + default=160, + help="Number of operation unit", + ) + group_misc.add_argument( + "--no-vad", + action="store_true", + ) + group_misc.add_argument( + "--mode", + choices=[v.value for v in Mode], + ) + group_misc.add_argument( + "--no-progress", + action="store_true", + ) group_misc.add_argument( "--show-devices", action="store_true",