maas2 / src /streamlit_app.py
acarz's picture
Update src/streamlit_app.py
5e0e604 verified
raw
history blame contribute delete
458 Bytes
import streamlit as st
import pickle
st.title('Tecrübe, yazılı sınav ve mülakata göre maaş tahmini :heavy_dollar_sign:')
model=pickle.load(open('src/maas.pkl','rb'))
tecrube=st.number_input('tecrube',1,10)
yazili=st.number_input('yazili',1,10)
sozlu=st.number_input('sozzlu',1,10)
if st.button('tahmin et'):
tahmin=model.predict([[tecrube, yazili, sozlu]])
tahmin=round(tahmin[0][0],2)
st.success(f'YZ tahmin edilen maasiniz:{tahmin}')