metehanayhan commited on
Commit
8919d82
·
verified ·
1 Parent(s): 4ba41fe

Upload 3 files

Browse files
Files changed (3) hide show
  1. app3.py +14 -0
  2. maas.pkl +3 -0
  3. requirements.txt +3 -0
app3.py ADDED
@@ -0,0 +1,14 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ import streamlit as st
2
+ import pandas as pd
3
+ import pickle
4
+
5
+ st.title('Model that Predict Salary by Experience, Test, Interview :heavy_dollar_sign:')
6
+ model = pickle.load(open('data/maas.pkl', 'rb'))
7
+
8
+ exp = st.number_input('Experience', 0, 10)
9
+ test = st.number_input('Test', 0, 10)
10
+ interview = st.number_input('Interview', 0, 10)
11
+ if st.button('Predict'):
12
+ prediction = model.predict([[exp, test, interview]])
13
+ prediction = round(prediction[0][0], 2)
14
+ st.success(f'Predicted Salary is {prediction} $')
maas.pkl ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:da9cbab516498a8858352d566f3e2107efcef38ee6f5bfa29447b186de3638ac
3
+ size 592
requirements.txt ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ streamlit
2
+ scikit-learn
3
+ pandas