Update app.py
Browse files
app.py
CHANGED
|
@@ -15,15 +15,22 @@ import pickle
|
|
| 15 |
# prediction = model.predict([[living_area, bedrooms]])
|
| 16 |
# st.write(f'Predicted House Price: ${prediction[0]:.2f}')
|
| 17 |
|
| 18 |
-
#Load the model
|
| 19 |
-
with open('best_model.pkl', 'rb') as f:
|
| 20 |
-
model = f
|
| 21 |
|
| 22 |
-
|
| 23 |
-
|
| 24 |
-
|
| 25 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 26 |
# Predict house price
|
| 27 |
-
if st.button('Predict Promosi'):
|
| 28 |
-
prediction = model.predict([[5, 1, 1, 89]])
|
| 29 |
-
st.write(f'Predicted Result: ${prediction[0]:.2f}')
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 15 |
# prediction = model.predict([[living_area, bedrooms]])
|
| 16 |
# st.write(f'Predicted House Price: ${prediction[0]:.2f}')
|
| 17 |
|
|
|
|
|
|
|
|
|
|
| 18 |
|
| 19 |
+
|
| 20 |
+
|
| 21 |
+
#Load the model
|
| 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([[5, 1, 1, 89]])
|
| 32 |
+
# st.write(f'Predicted Result: ${prediction[0]:.2f}')
|
| 33 |
+
|
| 34 |
+
|
| 35 |
+
import sklearn
|
| 36 |
+
print('The scikit-learn version is {}.'.format(sklearn.__version__))
|