Skip to content

Commit 7ea8283

Browse files
authored
Add hotwords argument to OfflineQwen3ASRModelConfig (k2-fsa#3468)
1 parent 21473b6 commit 7ea8283

1 file changed

Lines changed: 3 additions & 2 deletions

File tree

sherpa-onnx/python/csrc/offline-qwen3-asr-model-config.cc

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -15,12 +15,13 @@ void PybindOfflineQwen3ASRModelConfig(py::module *m) {
1515
py::class_<PyClass>(*m, "OfflineQwen3ASRModelConfig")
1616
.def(py::init<const std::string &, const std::string &,
1717
const std::string &, const std::string &, int32_t, int32_t,
18-
float, float, int32_t>(),
18+
float, float, int32_t, const std::string &>(),
1919
py::arg("conv_frontend") = "", py::arg("encoder") = "",
2020
py::arg("decoder") = "", py::arg("tokenizer") = "",
2121
py::arg("max_total_len") = 512, py::arg("max_new_tokens") = 128,
2222
py::arg("temperature") = 1e-6f, py::arg("top_p") = 0.8f,
23-
py::arg("seed") = 42)
23+
py::arg("seed") = 42,
24+
py::arg("hotwords") = "")
2425
.def_readwrite("conv_frontend", &PyClass::conv_frontend)
2526
.def_readwrite("encoder", &PyClass::encoder)
2627
.def_readwrite("decoder", &PyClass::decoder)

0 commit comments

Comments
 (0)