CoolFace
Apppublic

Sbasu2407/myspace

sourceHugging Faceupdated 2y agoView on Hugging Face
0likes
app.py8 linesDownload Raw Back to root
1import streamlit as st
2import pickle as pk
3st.title('ML App to predict salary of a person based on experience')
4exp=st.number_input('Enter the experience')
5loadedModel=pk.load(open('final-model.pkl', 'rb'))
6salary=loadedModel.predict([[exp]])
7st.write("Salary is: "+str(salary[0]))
8