jr98rh commited on
Commit
6be0805
·
verified ·
1 Parent(s): fb3b3f0

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +4 -4
app.py CHANGED
@@ -1,10 +1,11 @@
1
  import streamlit as st
2
  import numpy as np
3
  import pandas as pd
4
- #import joblib
5
  import pickle
6
 
7
- model = pickle.load(open("PycaretGBR.pkl", 'rb'))
 
8
  st.title('Developer Salary Prediction 2024')
9
  st.write("""### We need some information to predict the salary""")
10
 
@@ -59,8 +60,7 @@ columns = ['Country', 'EdLevel', 'YearsCodePro', 'Employment']
59
 
60
  ok = st.button("Calculate Salary")
61
  if ok:
62
- #X_new = np.array([countries,education,expericence,employment])
63
- X_new_df = pd.DataFrame([[countries,education,expericence,employment]],
64
  columns = ['Country', 'EdLevel', 'YearsCodePro', 'Employment'])
65
  print("##########")
66
  print("##########")
 
1
  import streamlit as st
2
  import numpy as np
3
  import pandas as pd
4
+ import joblib
5
  import pickle
6
 
7
+ # model = pickle.load(open("PycaretGBR.pkl", 'rb'))
8
+ model = joblib.load("lr.joblib")
9
  st.title('Developer Salary Prediction 2024')
10
  st.write("""### We need some information to predict the salary""")
11
 
 
60
 
61
  ok = st.button("Calculate Salary")
62
  if ok:
63
+ X_new_df = pd.DataFrame([[country,education,expericence,employment]],
 
64
  columns = ['Country', 'EdLevel', 'YearsCodePro', 'Employment'])
65
  print("##########")
66
  print("##########")