From 2e36e738ca39afc8d02f3d11013bd12f937cc874 Mon Sep 17 00:00:00 2001
From: zhaomingwork <61895407+zhaomingwork@users.noreply.github.com>
Date: 星期三, 08 十一月 2023 09:22:06 +0800
Subject: [PATCH] fix bug for h5 hotwords (#1067)
---
egs/aishell/transformer/utils/gen_modelscope_configuration.py | 5 +++--
1 files changed, 3 insertions(+), 2 deletions(-)
diff --git a/egs/aishell/transformer/utils/gen_modelscope_configuration.py b/egs/aishell/transformer/utils/gen_modelscope_configuration.py
index 7962f23..d340970 100644
--- a/egs/aishell/transformer/utils/gen_modelscope_configuration.py
+++ b/egs/aishell/transformer/utils/gen_modelscope_configuration.py
@@ -106,12 +106,13 @@
args.dataset, args.vocab_size, args.tag),
}
}
+ pipeline = {"type": args.pipeline_type}
json_dict = {
"framework": "pytorch",
"task": args.task,
"model": model,
- "pipeline": args.pipeline_type,
+ "pipeline": pipeline,
}
with open(os.path.join(args.output_dir, "configuration.json"), "w") as f:
- json.dump(json_dict, f)
+ json.dump(json_dict, f, indent=4)
--
Gitblit v1.9.1