Spaces:
Sleeping
Sleeping
Download app.py from DataWorldPro/FirstMLapp: direct link, hf CLI and curl.
- Browser
- Download file 421 Bytes
-
https://huggingface.co/spaces/DataWorldPro/FirstMLapp/resolve/a79bf05f08bbdb136fc792d716db71ce558614a2/app.py
- Command line
-
hf download hf://spaces/DataWorldPro/FirstMLapp@a79bf05f08bbdb136fc792d716db71ce558614a2/app.py
-
curl -L -o app.py https://huggingface.co/spaces/DataWorldPro/FirstMLapp/resolve/a79bf05f08bbdb136fc792d716db71ce558614a2/app.py
421 Bytes
| import streamlit as st | |
| import joblib | |
| st.title("Housing Price Priction") | |
| st.subheader("Fill Values") | |
| area=st.number_input("area:") | |
| bd=st.number_input("bedrooms:") | |
| age=st.number_input("age:") | |
| model=joblib.load("price_pridictor") | |
| def predict(model,area,bd,age): | |
| price=model.predict([[area,bd,age]]) | |
| return price | |
| if st.button("Submit"): | |
| result=predict(model,area,bd,age) | |
| st.write("House price :",int(result)) |