From 9d01231fa69672fc7c9b4bf81ef466bb0189788c Mon Sep 17 00:00:00 2001
From: aky15 <ankeyu.aky@11.17.44.249>
Date: 星期三, 17 五月 2023 17:34:21 +0800
Subject: [PATCH] rnnt继承ASRTask

---
 funasr/runtime/python/websocket/parse_args.py |   19 +++++++++++++++++--
 1 files changed, 17 insertions(+), 2 deletions(-)

diff --git a/funasr/runtime/python/websocket/parse_args.py b/funasr/runtime/python/websocket/parse_args.py
index 2528a76..bfa5a87 100644
--- a/funasr/runtime/python/websocket/parse_args.py
+++ b/funasr/runtime/python/websocket/parse_args.py
@@ -31,5 +31,20 @@
                     type=int,
                     default=1,
                     help="0 for cpu, 1 for gpu")
-
-args = parser.parse_args()
\ No newline at end of file
+parser.add_argument("--ncpu",
+                    type=int,
+                    default=1,
+                    help="cpu cores")
+parser.add_argument("--certfile",
+                    type=str,
+                    default="",
+                    required=False,
+                    help="certfile for ssl")
+                    
+parser.add_argument("--keyfile",
+                    type=str,
+                    default="",
+                    required=False,
+                    help="keyfile for ssl")
+args = parser.parse_args()
+print(args)
\ No newline at end of file

--
Gitblit v1.9.1