From 85e351bdd9422cb9612fd2d2e0a37e358c26cbc1 Mon Sep 17 00:00:00 2001
From: boji123 <boji123@aliyun.com>
Date: 星期五, 18 八月 2023 15:35:49 +0800
Subject: [PATCH] 增加模型下载流程 & 接口修正 & debug (#871)
---
funasr/runtime/websocket/funasr-wss-server-2pass.cpp | 6 +++---
1 files changed, 3 insertions(+), 3 deletions(-)
diff --git a/funasr/runtime/websocket/funasr-wss-server-2pass.cpp b/funasr/runtime/websocket/funasr-wss-server-2pass.cpp
index 22b4587..835cd8e 100644
--- a/funasr/runtime/websocket/funasr-wss-server-2pass.cpp
+++ b/funasr/runtime/websocket/funasr-wss-server-2pass.cpp
@@ -154,7 +154,7 @@
std::string python_cmd =
"python -m funasr.utils.runtime_sdk_download_tool --type onnx --quantize True ";
- if (vad_dir.isSet() && !s_vad_path.empty()) {
+ if (!s_vad_path.empty()) {
std::string python_cmd_vad;
std::string down_vad_path;
std::string down_vad_model;
@@ -200,7 +200,7 @@
LOG(INFO) << "VAD model is not set, use default.";
}
- if (offline_model_dir.isSet() && !s_offline_asr_path.empty()) {
+ if (!s_offline_asr_path.empty()) {
std::string python_cmd_asr;
std::string down_asr_path;
std::string down_asr_model;
@@ -288,7 +288,7 @@
LOG(INFO) << "ASR online model is not set, use default.";
}
- if (punc_dir.isSet() && !s_punc_path.empty()) {
+ if (!s_punc_path.empty()) {
std::string python_cmd_punc;
std::string down_punc_path;
std::string down_punc_model;
--
Gitblit v1.9.1