Remove the 30-second constraint from whisper. (#471)
This commit is contained in:
@@ -15,13 +15,14 @@ void PybindOfflineWhisperModelConfig(py::module *m) {
|
||||
using PyClass = OfflineWhisperModelConfig;
|
||||
py::class_<PyClass>(*m, "OfflineWhisperModelConfig")
|
||||
.def(py::init<const std::string &, const std::string &,
|
||||
const std::string &, const std::string &>(),
|
||||
const std::string &, const std::string &, int32_t>(),
|
||||
py::arg("encoder"), py::arg("decoder"), py::arg("language"),
|
||||
py::arg("task"))
|
||||
py::arg("task"), py::arg("tail_paddings") = -1)
|
||||
.def_readwrite("encoder", &PyClass::encoder)
|
||||
.def_readwrite("decoder", &PyClass::decoder)
|
||||
.def_readwrite("language", &PyClass::language)
|
||||
.def_readwrite("task", &PyClass::task)
|
||||
.def_readwrite("tail_paddings", &PyClass::tail_paddings)
|
||||
.def("__str__", &PyClass::ToString);
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user