From 4d907718f39e2b0f7a0c714c2e3de289e742fc61 Mon Sep 17 00:00:00 2001
From: Carl <415692979@qq.com>
Date: 星期四, 28 三月 2024 13:42:00 +0800
Subject: [PATCH] 修正commit 87b62d68957a2194b017a43b6c2a15424a05a984 引入的英文整句标点预测导致末尾两个单词中间的空格被删除的问题。 (#1556)
---
runtime/python/http/client.py | 8 +-------
1 files changed, 1 insertions(+), 7 deletions(-)
diff --git a/runtime/python/http/client.py b/runtime/python/http/client.py
index c237619..d6c11eb 100644
--- a/runtime/python/http/client.py
+++ b/runtime/python/http/client.py
@@ -14,11 +14,6 @@
default=8000,
required=False,
help="server port")
-parser.add_argument("--add_pun",
- type=int,
- default=1,
- required=False,
- help="add pun to result")
parser.add_argument("--audio_path",
type=str,
default='asr_example_zh.wav',
@@ -32,9 +27,8 @@
url = f'http://{args.host}:{args.port}/recognition'
-data = {'add_pun': args.add_pun}
headers = {}
files = [('audio', (os.path.basename(args.audio_path), open(args.audio_path, 'rb'), 'application/octet-stream'))]
-response = requests.post(url, headers=headers, data=data, files=files)
+response = requests.post(url, headers=headers, files=files)
print(response.text)
--
Gitblit v1.9.1