hocuf's picture
Update app.py
ab0d356 verified
raw
history blame contribute delete
535 Bytes
import streamlit as st
import pickle
st.title('Salary Prediction based on Experience-Exam-Interview :dollar:')
experience = st.number_input('Enter Experience Years: ',1,20)
exam = st.number_input('Enter Exam Results: ',1,10)
interview = st.number_input('Enter Interview Results: ',1,10)
model=pickle.load(open('maas.pkl', 'rb'))
if st.button('Show Salary Prediction'):
result = model.predict([[experience,exam,interview]])
st.divider()
results = round(result[0][0],2)
st.success(f'SALARY PREDICTION: {results}$')