pradelf commited on
Commit
7b1aef7
·
verified ·
1 Parent(s): 2784a05

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -0
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: