Skip to content

Commit 51a182f

Browse files
committed
update prediction
1 parent fbab145 commit 51a182f

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

jigsawstack/prediction.py

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -5,10 +5,11 @@
55

66
from typing import List, Union
77
from ._config import ClientConfig
8+
from ._types import BaseResponse
89

910

1011
class Dataset(TypedDict):
11-
value: int
12+
value: Union[int, str]
1213
"""
1314
The value of the dataset.
1415
"""
@@ -30,12 +31,11 @@ class PredictionParams(TypedDict):
3031
"""
3132

3233

33-
class PredictionResponse(TypedDict):
34-
success: bool
34+
class PredictionResponse(BaseResponse):
35+
prediction: List[Dataset]
3536
"""
36-
Indicates whether the translation was successful.
37+
The predictions made on the dataset.
3738
"""
38-
prediction: object
3939

4040

4141
class Prediction(ClientConfig):

0 commit comments

Comments
 (0)