We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 79c0cd6 commit 24fceddCopy full SHA for 24fcedd
1 file changed
ml_rest_api/ml_trained_model/ml_trained_model.py
@@ -36,7 +36,7 @@ def init() -> None:
36
# feature_selector = joblib.load(full_path('feature_selector.pkl'))
37
38
39
-def run(input_data: Iterable) -> Dict:
+def run(input_data: Iterable[Any]) -> Dict[str, Any]:
40
"""Makes a prediction using the trained ML model."""
41
log.info("input_data:%s", input_data)
42
data: pd.DataFrame = (
@@ -60,7 +60,7 @@ def run(input_data: Iterable) -> Dict:
60
return {"prediction": prediction}
61
62
63
-def sample() -> Dict:
+def sample() -> Dict[str, Any]:
64
"""Returns a sample input vector as a dictionary."""
65
return {
66
"int_param": 10,
0 commit comments