From 1d205d340ff5129e457fa462eb5b31b152086339 Mon Sep 17 00:00:00 2001
From: lyblsgo <lyblsgo@163.com>
Date: 星期二, 25 四月 2023 20:17:12 +0800
Subject: [PATCH] add option parser; add copyright;
---
funasr/runtime/onnxruntime/src/model.cpp | 4 ++--
1 files changed, 2 insertions(+), 2 deletions(-)
diff --git a/funasr/runtime/onnxruntime/src/model.cpp b/funasr/runtime/onnxruntime/src/model.cpp
index a582f82..52ce7ba 100644
--- a/funasr/runtime/onnxruntime/src/model.cpp
+++ b/funasr/runtime/onnxruntime/src/model.cpp
@@ -1,8 +1,8 @@
#include "precomp.h"
-Model *CreateModel(const char *path, int thread_num, 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::Paraformer(path, thread_num, quantize, use_vad, use_punc);
+ mm = new paraformer::Paraformer(model_path, thread_num);
return mm;
}
--
Gitblit v1.9.1