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

Commit

Permalink
Fix
Browse files Browse the repository at this point in the history
  • Loading branch information
proguy914629bot committed Jan 12, 2022
1 parent e0a1f8e commit 61d76d4
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion openrobot/api_wrapper/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -8,4 +8,4 @@

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

__version__ = '0.4.0'
__version__ = '0.4.0.1'
2 changes: 1 addition & 1 deletion openrobot/api_wrapper/results.py
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand Down
2 changes: 1 addition & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
@@ -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 <[email protected]>", "proguy914629 <[email protected]>"]
license = "MIT"
Expand Down

0 comments on commit 61d76d4

Please sign in to comment.