Skip to content
This repository was archived by the owner on Oct 12, 2022. It is now read-only.

Commit 61d76d4

Browse files
Fix
1 parent e0a1f8e commit 61d76d4

File tree

3 files changed

+3
-3
lines changed

3 files changed

+3
-3
lines changed

openrobot/api_wrapper/__init__.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,4 +8,4 @@
88

99
from . import _async, _sync, translate, results, error, speech, utils
1010

11-
__version__ = '0.4.0'
11+
__version__ = '0.4.0.1'

openrobot/api_wrapper/results.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -45,7 +45,7 @@ def __init__(self, js):
4545
self.max_length: int = js["max_length"]
4646
self.num_return: int = js["num_return"]
4747
self.status: str = js["status"]
48-
self.result: typing.Optional[str] = js["result"][0]["generated_text"] if js["result"] else None
48+
self.result: typing.Optional[typing.List[str]] = [x["generated_text"] for x in js["result"]] if js["result"] else None
4949
self.timestamp: float = js["timestamp"]
5050

5151
class SentimentResultReturned:

pyproject.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
[tool.poetry]
22
name = "OpenRobot-API-Wrapper"
3-
version = "0.4.0"
3+
version = "0.4.0.1"
44
description = "A API Wrapper for the official OpenRobot API (https://api.openrobot.xyz)."
55
authors = ["OpenRobot Packages <openrobot@openrobot.xyz>", "proguy914629 <proguy914629@openrobot.xyz>"]
66
license = "MIT"

0 commit comments

Comments
 (0)