Olivier-52 commited on
Commit
2c009f0
·
1 Parent(s): 2741c49

Update app.py

Browse files

fix pred feature

Files changed (1) hide show
  1. app.py +2 -2
app.py CHANGED
@@ -108,8 +108,8 @@ def predict(features: PredictionFeatures):
108
 
109
  try:
110
  df = pd.DataFrame({...})
111
- prediction = model.predict(df)[0]
112
- return {"prediction": int(prediction[0])}
113
  except Exception as e:
114
  return {"error": str(e)}
115
 
 
108
 
109
  try:
110
  df = pd.DataFrame({...})
111
+ return model.predict(df)[0]
112
+
113
  except Exception as e:
114
  return {"error": str(e)}
115