From c1d01605bf5c4dc383f4c397ae4f566ce91b214a Mon Sep 17 00:00:00 2001
From: Binbin Gu <gubinbin@outlook.com>
Date: 星期五, 22 九月 2023 09:01:02 +0800
Subject: [PATCH] Update money.py (#971)

---
 funasr/runtime/onnxruntime/src/ct-transformer-online.cpp |    3 +--
 1 files changed, 1 insertions(+), 2 deletions(-)

diff --git a/funasr/runtime/onnxruntime/src/ct-transformer-online.cpp b/funasr/runtime/onnxruntime/src/ct-transformer-online.cpp
index 14601a5..5fe692b 100644
--- a/funasr/runtime/onnxruntime/src/ct-transformer-online.cpp
+++ b/funasr/runtime/onnxruntime/src/ct-transformer-online.cpp
@@ -22,7 +22,7 @@
     }
     catch (std::exception const &e) {
         LOG(ERROR) << "Error when load punc onnx model: " << e.what();
-        exit(0);
+        exit(-1);
     }
     // read inputnames outputnames
     string strName;
@@ -226,7 +226,6 @@
     catch (std::exception const &e)
     {
         LOG(ERROR) << "Error when run punc onnx forword: " << (e.what());
-        exit(0);
     }
     return punction;
 }

--
Gitblit v1.9.1