How shirisha2004e/housepriceprediction works
This is a small Flask house-price prediction app. A visitor opens the home page, submits property features on the prediction form, and receives a price rendered with those inputs. Separately, train_model.py loads or generates housing data and fits a linear-regression model. The sampled app expects house_model.pkl and imports model.train_model, but the tree contains house_price_model.pkl and train_model.py; that mismatch leaves the app-to-training/artifact wiring uncertain. The README is empty, and template contents were not sampled.
Main entry points: app.py Flask app · train_model.py Model trainer · index.html Home page · predict.html Prediction form
Components 9
Web interface
- Flask app
app.py - Home page
templates/index.html - Prediction form
templates/predict.html - Price result
templates/result.html
Modeling
- Price model
- Model trainer
train_model.py - Housing data
house_data.csv - Model artifact
house_price_model.pkl
Other components
- Visitor
Connections 7
- Visitor → Flask app: sends requests
- Flask app → Home page: renders
- Flask app → Prediction form: renders
- Flask app → Price model: predicts with
- Flask app → Price result: renders
- Model trainer → Housing data: reads or writes
- Model trainer → Price model: fits