Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
|
@@ -46,9 +46,6 @@ 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 |
-
# 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 |
|
|
|
|
| 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 |
|