From 4e7f5d075f98eb4f837f21be1dc498912ae31830 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E9=9B=BE=E8=81=AA?= Date: Fri, 1 Mar 2024 16:24:04 +0800 Subject: [PATCH] update deploy tools --- .../funasr-runtime-deploy-offline-cpu-en.sh | 54 +++++++++---------- .../funasr-runtime-deploy-offline-cpu-zh.sh | 54 +++++++++---------- .../funasr-runtime-deploy-online-cpu-zh.sh | 54 +++++++++---------- 3 files changed, 81 insertions(+), 81 deletions(-) diff --git a/runtime/deploy_tools/funasr-runtime-deploy-offline-cpu-en.sh b/runtime/deploy_tools/funasr-runtime-deploy-offline-cpu-en.sh index cdd50b574..1d570aa2d 100644 --- a/runtime/deploy_tools/funasr-runtime-deploy-offline-cpu-en.sh +++ b/runtime/deploy_tools/funasr-runtime-deploy-offline-cpu-en.sh @@ -982,33 +982,33 @@ dockerRun(){ getDockerId saveParams - # Hide the cursor, start draw progress. - printf "\e[?25l" - while true - do - serverProgress - result=$? - stage=`expr ${result} + 0` - if [ ${stage} -eq 0 ]; then - break - elif [ ${stage} -gt 0 ] && [ ${stage} -lt 6 ]; then - sleep 0.1 - # clear 3 lines - printf "\033[3A" - elif [ ${stage} -eq 6 ]; then - break - elif [ ${stage} -eq 98 ]; then - return 98 - else - echo -e " ${RED}Starting FunASR server failed.${PLAIN}" - echo - # Display the cursor - printf "\e[?25h" - return 99 - fi - done - # Display the cursor - printf "\e[?25h" + # # Hide the cursor, start draw progress. + # printf "\e[?25l" + # while true + # do + # serverProgress + # result=$? + # stage=`expr ${result} + 0` + # if [ ${stage} -eq 0 ]; then + # break + # elif [ ${stage} -gt 0 ] && [ ${stage} -lt 6 ]; then + # sleep 0.1 + # # clear 3 lines + # printf "\033[3A" + # elif [ ${stage} -eq 6 ]; then + # break + # elif [ ${stage} -eq 98 ]; then + # return 98 + # else + # echo -e " ${RED}Starting FunASR server failed.${PLAIN}" + # echo + # # Display the cursor + # printf "\e[?25h" + # return 99 + # fi + # done + # # Display the cursor + # printf "\e[?25h" echo -e " ${GREEN}The service has been started.${PLAIN}" echo diff --git a/runtime/deploy_tools/funasr-runtime-deploy-offline-cpu-zh.sh b/runtime/deploy_tools/funasr-runtime-deploy-offline-cpu-zh.sh index d69bd251e..4a70f7ab4 100644 --- a/runtime/deploy_tools/funasr-runtime-deploy-offline-cpu-zh.sh +++ b/runtime/deploy_tools/funasr-runtime-deploy-offline-cpu-zh.sh @@ -1034,33 +1034,33 @@ dockerRun(){ getDockerId saveParams - # Hide the cursor, start draw progress. - printf "\e[?25l" - while true - do - serverProgress - result=$? - stage=`expr ${result} + 0` - if [ ${stage} -eq 0 ]; then - break - elif [ ${stage} -gt 0 ] && [ ${stage} -lt 6 ]; then - sleep 0.1 - # clear 3 lines - printf "\033[3A" - elif [ ${stage} -eq 6 ]; then - break - elif [ ${stage} -eq 98 ]; then - return 98 - else - echo -e " ${RED}Starting FunASR server failed.${PLAIN}" - echo - # Display the cursor - printf "\e[?25h" - return 99 - fi - done - # Display the cursor - printf "\e[?25h" + # # Hide the cursor, start draw progress. + # printf "\e[?25l" + # while true + # do + # serverProgress + # result=$? + # stage=`expr ${result} + 0` + # if [ ${stage} -eq 0 ]; then + # break + # elif [ ${stage} -gt 0 ] && [ ${stage} -lt 6 ]; then + # sleep 0.1 + # # clear 3 lines + # printf "\033[3A" + # elif [ ${stage} -eq 6 ]; then + # break + # elif [ ${stage} -eq 98 ]; then + # return 98 + # else + # echo -e " ${RED}Starting FunASR server failed.${PLAIN}" + # echo + # # Display the cursor + # printf "\e[?25h" + # return 99 + # fi + # done + # # Display the cursor + # printf "\e[?25h" echo -e " ${GREEN}The service has been started.${PLAIN}" echo diff --git a/runtime/deploy_tools/funasr-runtime-deploy-online-cpu-zh.sh b/runtime/deploy_tools/funasr-runtime-deploy-online-cpu-zh.sh index 61d8a52e9..270191aea 100644 --- a/runtime/deploy_tools/funasr-runtime-deploy-online-cpu-zh.sh +++ b/runtime/deploy_tools/funasr-runtime-deploy-online-cpu-zh.sh @@ -982,33 +982,33 @@ dockerRun(){ getDockerId saveParams - # Hide the cursor, start draw progress. - printf "\e[?25l" - while true - do - serverProgress - result=$? - stage=`expr ${result} + 0` - if [ ${stage} -eq 0 ]; then - break - elif [ ${stage} -gt 0 ] && [ ${stage} -lt 6 ]; then - sleep 0.1 - # clear 3 lines - printf "\033[3A" - elif [ ${stage} -eq 6 ]; then - break - elif [ ${stage} -eq 98 ]; then - return 98 - else - echo -e " ${RED}Starting FunASR server failed.${PLAIN}" - echo - # Display the cursor - printf "\e[?25h" - return 99 - fi - done - # Display the cursor - printf "\e[?25h" + # # Hide the cursor, start draw progress. + # printf "\e[?25l" + # while true + # do + # serverProgress + # result=$? + # stage=`expr ${result} + 0` + # if [ ${stage} -eq 0 ]; then + # break + # elif [ ${stage} -gt 0 ] && [ ${stage} -lt 6 ]; then + # sleep 0.1 + # # clear 3 lines + # printf "\033[3A" + # elif [ ${stage} -eq 6 ]; then + # break + # elif [ ${stage} -eq 98 ]; then + # return 98 + # else + # echo -e " ${RED}Starting FunASR server failed.${PLAIN}" + # echo + # # Display the cursor + # printf "\e[?25h" + # return 99 + # fi + # done + # # Display the cursor + # printf "\e[?25h" echo -e " ${GREEN}The service has been started.${PLAIN}" echo