From 2d2bcdcbd31dcf7b2e305d4f8b2eb728f195aae0 Mon Sep 17 00:00:00 2001
From: zhifu gao <zhifu.gzf@alibaba-inc.com>
Date: 星期三, 03 五月 2023 08:15:32 +0800
Subject: [PATCH] Merge pull request #445 from zhuzizyf/main

---
 funasr/runtime/onnxruntime/src/model.cpp |    6 ++----
 1 files changed, 2 insertions(+), 4 deletions(-)

diff --git a/funasr/runtime/onnxruntime/src/model.cpp b/funasr/runtime/onnxruntime/src/model.cpp
index b2a9cd9..52ce7ba 100644
--- a/funasr/runtime/onnxruntime/src/model.cpp
+++ b/funasr/runtime/onnxruntime/src/model.cpp
@@ -1,10 +1,8 @@
 #include "precomp.h"
 
-Model *CreateModel(const char *path, int nThread, bool quantize, bool use_vad, bool use_punc)
+Model *CreateModel(std::map<std::string, std::string>& model_path, int thread_num)
 {
     Model *mm;
-
-    mm = new paraformer::ModelImp(path, nThread, quantize, use_vad, use_punc);
-
+    mm = new paraformer::Paraformer(model_path, thread_num);
     return mm;
 }

--
Gitblit v1.9.1