Update handler.py

#1
by philschmid HF staff - opened
Files changed (1) hide show
  1. handler.py +1 -1
handler.py CHANGED
@@ -22,7 +22,7 @@ class EndpointHandler():
22
  """
23
  inputs = data.pop("inputs", data)
24
  parameters = data.pop("parameters", None)
25
- df = pd.DataFrame(data)
26
 
27
  df["TotalCharges"] = df["TotalCharges"].replace(" ", np.nan, regex=False).astype(float)
28
  df = df.drop(columns=["customerID"])
 
22
  """
23
  inputs = data.pop("inputs", data)
24
  parameters = data.pop("parameters", None)
25
+ df = pd.DataFrame(inputs)
26
 
27
  df["TotalCharges"] = df["TotalCharges"].replace(" ", np.nan, regex=False).astype(float)
28
  df = df.drop(columns=["customerID"])