Skip to content

Commit 13820d3

Browse files
authored
Add a workaround to avoid unexpected conversion to int (#317)
* Add suport of str lists to ListValue * Version up
1 parent f67035e commit 13820d3

2 files changed

Lines changed: 3 additions & 1 deletion

File tree

model_api/python/model_api/models/types.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -170,6 +170,8 @@ def __init__(
170170
self.value_type = value_type
171171

172172
def from_str(self, value):
173+
if self.value_type is str or self.value_type is StringValue:
174+
return value.split()
173175
try:
174176
floats = [float(i) for i in value.split()]
175177
try:

model_api/python/pyproject.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ build-backend = "setuptools.build_meta"
88

99
[project]
1010
name = "openvino_model_api"
11-
version = "0.2.5.2"
11+
version = "0.2.5.3"
1212
requires-python = ">=3.9"
1313
authors = [
1414
{name = "Intel(R) Corporation"},

0 commit comments

Comments
 (0)