RMHalak commited on
Commit
0934492
·
verified ·
1 Parent(s): 344f42c

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -1
app.py CHANGED
@@ -1,7 +1,7 @@
1
  import streamlit as st
2
  import pandas as pd
3
  import pickle
4
- from utils import create_new_features, normalize, init_new_pred
5
 
6
  with open('./trained_model.pkl', 'rb') as file:
7
  model = pickle.load(file)
@@ -65,6 +65,7 @@ with col1:
65
  # Process the prediction
66
  new_pred = pd.DataFrame([new_pred])
67
  new_pred = create_new_features(new_pred)
 
68
  new_pred = normalize(new_pred)
69
 
70
  # Predict the price
 
1
  import streamlit as st
2
  import pandas as pd
3
  import pickle
4
+ from utils import create_new_features, normalize, bucketize, init_new_pred
5
 
6
  with open('./trained_model.pkl', 'rb') as file:
7
  model = pickle.load(file)
 
65
  # Process the prediction
66
  new_pred = pd.DataFrame([new_pred])
67
  new_pred = create_new_features(new_pred)
68
+ new_pred = bucketize(new_pred)
69
  new_pred = normalize(new_pred)
70
 
71
  # Predict the price