Spaces:
Paused
Paused
Update app.py
Browse files
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
|