diff --git a/openrobot/api_wrapper/__init__.py b/openrobot/api_wrapper/__init__.py index a46e593..c1c37c2 100644 --- a/openrobot/api_wrapper/__init__.py +++ b/openrobot/api_wrapper/__init__.py @@ -8,4 +8,4 @@ from . import _async, _sync, translate, results, error, speech, utils -__version__ = '0.4.0' +__version__ = '0.4.0.1' diff --git a/openrobot/api_wrapper/results.py b/openrobot/api_wrapper/results.py index 2f43c85..877bd4d 100644 --- a/openrobot/api_wrapper/results.py +++ b/openrobot/api_wrapper/results.py @@ -45,7 +45,7 @@ def __init__(self, js): self.max_length: int = js["max_length"] self.num_return: int = js["num_return"] self.status: str = js["status"] - self.result: typing.Optional[str] = js["result"][0]["generated_text"] if js["result"] else None + self.result: typing.Optional[typing.List[str]] = [x["generated_text"] for x in js["result"]] if js["result"] else None self.timestamp: float = js["timestamp"] class SentimentResultReturned: diff --git a/pyproject.toml b/pyproject.toml index f3ed661..49af75c 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -1,6 +1,6 @@ [tool.poetry] name = "OpenRobot-API-Wrapper" -version = "0.4.0" +version = "0.4.0.1" description = "A API Wrapper for the official OpenRobot API (https://api.openrobot.xyz)." authors = ["OpenRobot Packages ", "proguy914629 "] license = "MIT"