Skip to content

Commit aaf93ae

Browse files
committed
Update Modal inference service to fastapi_endpoint
1 parent 52207f9 commit aaf93ae

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

modal_trained_model_service.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -147,7 +147,7 @@ def _predict_one(candidate: Dict[str, Any]) -> Dict[str, Any]:
147147
timeout=3600,
148148
volumes={"/artifacts": volume},
149149
)
150-
@modal.web_endpoint(method="POST")
150+
@modal.fastapi_endpoint(method="POST")
151151
def predict_trade_candidates(payload: Dict[str, Any]):
152152
candidates = payload.get("candidates") or []
153153
if not isinstance(candidates, list):

0 commit comments

Comments
 (0)