Skip to content

Commit

Permalink
Error fix.
Browse files Browse the repository at this point in the history
  • Loading branch information
popovaan committed Jun 20, 2024
1 parent f601bcf commit 16352b0
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/bindings/python/src/pyopenvino/frontend/manager.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -79,7 +79,7 @@ void regclass_frontend_FrontEndManager(py::module m) {
fem.def(
"load_by_model",
[](const std::shared_ptr<ov::frontend::FrontEndManager>& fem, const py::object& model) {
if (py::isinstance(model, py::module_::import("pathlib").attr("Path"))) {
if (py::isinstance(model, py::module_::import("pathlib").attr("Path")) || py::isinstance<py::str>(model)) {
std::string model_path = Common::utils::convert_path_to_string(model);

// Fix unicode path
Expand Down

0 comments on commit 16352b0

Please sign in to comment.