nichaphat commited on
Commit
9950c21
1 Parent(s): 90f8722

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +3 -4
app.py CHANGED
@@ -2,7 +2,7 @@ import joblib
2
  import pandas as pd
3
  import streamlit as st #<-
4
 
5
- model = joblib.load('model (1).joblib') #<-
6
  unique_values = joblib.load('unique_values (1).joblib') #<-
7
 
8
  unique_job_title = unique_values["job_title"]
@@ -30,7 +30,7 @@ def main(): #<- defined main
30
  "Select your remote_ratio 👇",
31
  [0,50,100])
32
 
33
- salary_in_usd=st.slider('salary_in_usd',min_value=0, max_value=600000) #<-
34
 
35
  # clicked==True only when the button is clicked
36
  clicked = st.form_submit_button("Show my job salary Rate")
@@ -42,8 +42,7 @@ def main(): #<- defined main
42
  "company_location": [company_location],
43
  "company_size": [company_size],
44
  "work_Year": [work_Year],
45
- "remote_ratio": [remote_ratio],
46
- "salary_in_usd": [salary_in_usd]}))
47
  # Show prediction
48
  result= '<300k' if result[0]=='<300k'else '>=300k'
49
  #print report
 
2
  import pandas as pd
3
  import streamlit as st #<-
4
 
5
+ model = joblib.load('model (2).joblib') #<-
6
  unique_values = joblib.load('unique_values (1).joblib') #<-
7
 
8
  unique_job_title = unique_values["job_title"]
 
30
  "Select your remote_ratio 👇",
31
  [0,50,100])
32
 
33
+ # salary_in_usd=st.slider('salary_in_usd',min_value=0, max_value=600000) #<-
34
 
35
  # clicked==True only when the button is clicked
36
  clicked = st.form_submit_button("Show my job salary Rate")
 
42
  "company_location": [company_location],
43
  "company_size": [company_size],
44
  "work_Year": [work_Year],
45
+ "remote_ratio": [remote_ratio]}))
 
46
  # Show prediction
47
  result= '<300k' if result[0]=='<300k'else '>=300k'
48
  #print report