Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
|
@@ -44,6 +44,7 @@ def call_pricing_api(featRentalFeatures: RentalFeatures):
|
|
| 44 |
resp = requests.post(API_URL, json=payload, timeout=10)
|
| 45 |
resp.raise_for_status()
|
| 46 |
data = resp.json()
|
|
|
|
| 47 |
if "prediction" in data and len(data["prediction"]) > 0:
|
| 48 |
return float(data["prediction"][0]), payload, data
|
| 49 |
else:
|
|
|
|
| 44 |
resp = requests.post(API_URL, json=payload, timeout=10)
|
| 45 |
resp.raise_for_status()
|
| 46 |
data = resp.json()
|
| 47 |
+
logger.info(data)
|
| 48 |
if "prediction" in data and len(data["prediction"]) > 0:
|
| 49 |
return float(data["prediction"][0]), payload, data
|
| 50 |
else:
|