Spaces:
Sleeping
Sleeping
Download src/streamlit_app.py from hackkobaz/Maas_Tahmini: direct link, hf CLI and curl.
- Browser
- Download file 511 Bytes
-
https://huggingface.co/spaces/hackkobaz/Maas_Tahmini/resolve/main/src/streamlit_app.py
- Command line
-
hf download hf://spaces/hackkobaz/Maas_Tahmini/src/streamlit_app.py
-
curl -L -o streamlit_app.py https://huggingface.co/spaces/hackkobaz/Maas_Tahmini/resolve/main/src/streamlit_app.py
511 Bytes
| import streamlit as st | |
| import pickle | |
| st.title('Tecrübe, yazılı sınav ve mülakat puanlarına göre maaş tahmini :heavy_dollar_sign:') | |
| model=pickle.load(open("src/maas.pkl", "rb")) | |
| tecrube=st.number_input('Tecrübe (yıl)', 1,10) | |
| yazili=st.number_input('Yazılı Sınav Puanı', 0,10) | |
| sözlü=st.number_input('Sözlü Sınav Puanı', 0,10) | |
| if st.button('Tahmin et'): | |
| tahmin=model.predict([[tecrube,yazili,sözlü]]) | |
| tahmin=round(tahmin[0][0],2) | |
| st.success(f'YZ Tahmin edilen maaş: ${tahmin}') | |