bndl commited on
Commit
acd6f25
·
1 Parent(s): 48ff433

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -0
app.py CHANGED
@@ -170,6 +170,7 @@ def train_model(x, target_cols):
170
  performance_plot = cv2.imread("model_performance.png")
171
  metrics = pd.DataFrame([[0.05, 0.017]], columns=["RMSE", "MAPE"])
172
  next_df = x.sample(n=5, random_state=12)
 
173
  return "Model successfully adapted to your data!", performance_plot, metrics, next_df
174
 
175
 
 
170
  performance_plot = cv2.imread("model_performance.png")
171
  metrics = pd.DataFrame([[0.05, 0.017]], columns=["RMSE", "MAPE"])
172
  next_df = x.sample(n=5, random_state=12)
173
+ next_df.drop(columns=target_cols, inplace=True)
174
  return "Model successfully adapted to your data!", performance_plot, metrics, next_df
175
 
176