Skip to content

Commit

Permalink
fix python CI, missing type
Browse files Browse the repository at this point in the history
  • Loading branch information
SilverSulfide committed Sep 4, 2024
1 parent 5aa9f82 commit 8faedba
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions sherpa-onnx/python/csrc/online-lm-config.cc
Original file line number Diff line number Diff line change
Expand Up @@ -16,8 +16,8 @@ void PybindOnlineLMConfig(py::module *m) {
.def(py::init<const std::string &, float, int32_t,
const std::string &, bool>(),
py::arg("model") = "", py::arg("scale") = 0.5f,
py::arg("lm_num_threads") = 1, py::arg("lm_provider") = "cpu"),
py::arg("shallow_fusion") = true
py::arg("lm_num_threads") = 1, py::arg("lm_provider") = "cpu",
py::arg("shallow_fusion") = true)
.def_readwrite("model", &PyClass::model)
.def_readwrite("scale", &PyClass::scale)
.def_readwrite("lm_provider", &PyClass::lm_provider)
Expand Down
2 changes: 1 addition & 1 deletion sherpa-onnx/python/sherpa_onnx/online_recognizer.py
Original file line number Diff line number Diff line change
Expand Up @@ -64,7 +64,7 @@ def from_transducer(
bpe_vocab: str = "",
lm: str = "",
lm_scale: float = 0.1,
lm_shallow_fusion = True,
lm_shallow_fusion: bool = True,
temperature_scale: float = 2.0,
debug: bool = False,
rule_fsts: str = "",
Expand Down

0 comments on commit 8faedba

Please sign in to comment.