We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents ee18e92 + cdf373e commit 708cee9Copy full SHA for 708cee9
ccx_upgrades_data_eng/inference.py
@@ -26,7 +26,9 @@ def get_inference_for_predictors(
26
settings = get_settings()
27
28
inference_endpoint = f"{settings.inference_url}/upgrade-risks-prediction"
29
- inference_response = requests.get(inference_endpoint, data=risk_predictors.json(), timeout=5)
+ inference_response = requests.get(
30
+ inference_endpoint, json=risk_predictors.model_dump(), timeout=5
31
+ )
32
33
if inference_response.status_code != 200:
34
raise HTTPException(status_code=inference_response.status_code)
0 commit comments