Update app.py
Browse files
app.py
CHANGED
|
@@ -22,14 +22,16 @@ import pickle
|
|
| 22 |
with open('best_model.pkl', 'rb') as f:
|
| 23 |
model = pickle.load(f)
|
| 24 |
|
| 25 |
-
avg_train_score = st.text_input("AVG Train Score", "")
|
| 26 |
-
awards_won = st.text_input("Awards Won", "")
|
| 27 |
-
kpi_met = st.text_input("KPI Met 80", "")
|
| 28 |
previous_rating = st.text_input("Previous Rating", "")
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 29 |
# Predict house price
|
| 30 |
if st.button('Predict Promosi'):
|
| 31 |
-
prediction = model.predict([[
|
| 32 |
-
st.write(f'Predicted Result:
|
| 33 |
|
| 34 |
|
| 35 |
#import sklearn
|
|
|
|
| 22 |
with open('best_model.pkl', 'rb') as f:
|
| 23 |
model = pickle.load(f)
|
| 24 |
|
|
|
|
|
|
|
|
|
|
| 25 |
previous_rating = st.text_input("Previous Rating", "")
|
| 26 |
+
kpi_met = st.text_input("KPI Met 80", "")
|
| 27 |
+
awards_won = st.text_input("Awards Won", "")
|
| 28 |
+
avg_train_score = st.text_input("AVG Train Score", "")
|
| 29 |
+
|
| 30 |
+
|
| 31 |
# Predict house price
|
| 32 |
if st.button('Predict Promosi'):
|
| 33 |
+
prediction = model.predict([[previous_rating, kpi_met, awards_won, avg_train_score]])
|
| 34 |
+
st.write(f'Predicted Result: {prediction[0]}')
|
| 35 |
|
| 36 |
|
| 37 |
#import sklearn
|