rasmodev commited on
Commit
c078e06
·
verified ·
1 Parent(s): 08df2d8

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +3 -0
app.py CHANGED
@@ -46,6 +46,9 @@ if st.button("Predict"):
46
  numerical_cols = ['day', 'month', 'year', 'shop_id', 'item_id', 'item_price', 'item_category_id']
47
  input_df = pd.DataFrame(input_data, index=[0])[numerical_cols]
48
 
 
 
 
49
  # Make predictions using the trained model
50
  predictions = rf_model.predict(input_df)
51
 
 
46
  numerical_cols = ['day', 'month', 'year', 'shop_id', 'item_id', 'item_price', 'item_category_id']
47
  input_df = pd.DataFrame(input_data, index=[0])[numerical_cols]
48
 
49
+ # Fit the model
50
+ rf_model.fit(input_df) # Fit the model with the scaled input data
51
+
52
  # Make predictions using the trained model
53
  predictions = rf_model.predict(input_df)
54