danieleduardus commited on
Commit
ec1c3e0
·
verified ·
1 Parent(s): 0354bbe

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +12 -12
app.py CHANGED
@@ -19,18 +19,18 @@ import pickle
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
- st.text('The scikit-learn version is {}.'.format(sklearn.__version__))
 
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
+ #st.text('The scikit-learn version is {}.'.format(sklearn.__version__))