A Flask-based web application for predicting home prices based on location, square footage, number of bedrooms, and bathrooms.
This project provides a web interface and API for real estate price predictions. The application uses a machine learning model (managed by the util
module) to estimate property prices based on various features.
- Web interface for home price prediction
- REST API endpoints for programmatic access
- Location-based price estimation
- Considers square footage, bedrooms, and bathrooms
-
Clone the repository:
git clone https://github.com/bhushanzade02/HOUSE-PRICE-DS.git cd HOUSE-PRICE-DS
-
Create virtual environment
python -m venv .venv ./.venv/Scripts/activate
-
Install required dependencies:
pip install -r requirements.txt
-
Start the server:
python server/server.py
- Returns the home page
- Returns a list of available locations
- Response format:
{"locations": ["location1", "location2", ...]}
- Predicts the price of a home based on input parameters
- Request body format (JSON):
{ "total_sqft": 1000, "location": "Example Location", "bhk": 2, "bath": 2 }
- Response format:
{"estimated_price": 1500000}
- Access the web interface by navigating to
http://localhost:5000
in your browser - Select a location, enter the square footage, number of bedrooms, and bathrooms
- Submit the form to get a price estimate
- Server runs in debug mode by default
- CORS headers are enabled for all API endpoints
- Error handling is implemented for the prediction endpoint
python server/server.py
The server will start with the message "Starting Python Flask Server For Home Price Prediction..." and will be accessible at http://localhost:5000
.