From 47343b5c2f4e1256f60f46d8da0aa2e5de39b6c7 Mon Sep 17 00:00:00 2001
From: 嘉渊 <wangjiaming.wjm@alibaba-inc.com>
Date: 星期六, 05 八月 2023 17:53:08 +0800
Subject: [PATCH] init repo
---
funasr/runtime/websocket/funasr-wss-server.cpp | 12 +++---------
1 files changed, 3 insertions(+), 9 deletions(-)
diff --git a/funasr/runtime/websocket/funasr-wss-server.cpp b/funasr/runtime/websocket/funasr-wss-server.cpp
index 2f5462f..5061bba 100644
--- a/funasr/runtime/websocket/funasr-wss-server.cpp
+++ b/funasr/runtime/websocket/funasr-wss-server.cpp
@@ -125,12 +125,6 @@
try{
std::string s_download_model_dir = download_model_dir.getValue();
- // 鍒ゆ柇 s_download_model_dir 鏄惁瀛樺湪锛岀洰鍓嶇敤涓嶅埌
- if (access(s_download_model_dir.c_str(), F_OK) != 0){
- LOG(ERROR) << s_download_model_dir << " do not exists.";
- exit(-1);
- }
-
std::string s_vad_path = model_path[VAD_DIR];
std::string s_vad_quant = model_path[VAD_QUANT];
std::string s_asr_path = model_path[MODEL_DIR];
@@ -158,7 +152,7 @@
int ret = system(python_cmd_vad.c_str());
if(ret !=0){
- LOG(INFO) << "Failed to download model from modelscope. If you set local model path, you can ignore the errors.";
+ LOG(INFO) << "Failed to download model from modelscope. If you set local vad model path, you can ignore the errors.";
}
down_vad_model = down_vad_path+"/model_quant.onnx";
if(s_vad_quant=="false" || s_vad_quant=="False" || s_vad_quant=="FALSE"){
@@ -194,7 +188,7 @@
int ret = system(python_cmd_asr.c_str());
if(ret !=0){
- LOG(INFO) << "Failed to download model from modelscope. If you set local model path, you can ignore the errors.";
+ LOG(INFO) << "Failed to download model from modelscope. If you set local asr model path, you can ignore the errors.";
}
down_asr_model = down_asr_path+"/model_quant.onnx";
if(s_asr_quant=="false" || s_asr_quant=="False" || s_asr_quant=="FALSE"){
@@ -230,7 +224,7 @@
int ret = system(python_cmd_punc.c_str());
if(ret !=0){
- LOG(INFO) << "Failed to download model from modelscope. If you set local model path, you can ignore the errors.";
+ LOG(INFO) << "Failed to download model from modelscope. If you set local punc model path, you can ignore the errors.";
}
down_punc_model = down_punc_path+"/model_quant.onnx";
if(s_punc_quant=="false" || s_punc_quant=="False" || s_punc_quant=="FALSE"){
--
Gitblit v1.9.1