Spaces:
Sleeping
Sleeping
Upload 3 files
Browse files- app.py +18 -0
- maas.pkl +3 -0
- requirements.txt +4 -0
app.py
ADDED
@@ -0,0 +1,18 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
import streamlit as st
|
2 |
+
import pickle
|
3 |
+
|
4 |
+
|
5 |
+
st.title('Salary Prediction based on Experience-Exam-Interview :dollar:')
|
6 |
+
|
7 |
+
|
8 |
+
|
9 |
+
experience = st.number_input('Enter Experience Years: ',1,10)
|
10 |
+
exam = st.number_input('Enter Exam Results: ',1,10)
|
11 |
+
interview = st.number_input('Enter Interview Results: ',1,10)
|
12 |
+
|
13 |
+
model=pickle.load(open('data/maas.pkl', 'rb'))
|
14 |
+
if st.button('Show Salary Prediction'):
|
15 |
+
result = model.predict([[experience,exam,interview]])
|
16 |
+
st.divider()
|
17 |
+
results = round(result[0][0],2)
|
18 |
+
st.success(f'SALARY PREDICTION: {results}$')
|
maas.pkl
ADDED
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
1 |
+
version https://git-lfs.github.com/spec/v1
|
2 |
+
oid sha256:b3c5214424defa638cc58d64ecc441e5ebe1ebfaab3d199e33eed0f918afc2ba
|
3 |
+
size 592
|
requirements.txt
ADDED
@@ -0,0 +1,4 @@
|
|
|
|
|
|
|
|
|
|
|
1 |
+
streamlit
|
2 |
+
scikit-learn
|
3 |
+
pandas
|
4 |
+
pickle
|