This repository contains a Flask web application for predicting housing prices using the Boston Housing dataset. The application provides an interactive interface for users to input features and view the predicted housing prices along with relevant data visualizations.
These instructions will get you a copy of the project up and running on your local machine for development and testing purposes.
Before you begin, ensure you have the following installed:
- Python 3.10
- pip (Python package manager)
- Go to the main page of the repository on GitHub.
- In the top-right corner of the page, click Fork.
This creates a copy of the repository in your GitHub account.
- Clone your forked repository to your local machine:
git clone https://github.com/nakulpadalkar/flask-app-for-class.git
- Navigate to the cloned directory:
cd flask-app-for-class
- Create a virtual environment:
python3 -m venv venv
- Activate the virtual environment:
- On Windows:
.\venv\Scripts\activate
- On macOS and Linux:
source venv/bin/activate
- Install the required packages:
- Set the environment variable for Flask:
-
On Windows:
set FLASK_APP=app.py
-
On macOS and Linux:
export FLASK_APP=app.py
-
Run the Flask application:
flask run
-
Open your web browser and go to
http://127.0.0.1:5000/
to view the app.
Setting Heroku stack. In this case to heroku-20 equivalent with Ubuntu 20.04
heroku stack:set heroku-20
Since you are using a different stack, the old cache may not be compatible. Clearing cache:
heroku plugins:install heroku-builds
heroku builds:cache:purge -a appname
Triggering a rebuild:
git commit --allow-empty -m "Purge cache"
git push heroku master
You have to make sure that the buildpack you are using is compatible with heroku-22. If it is not, it will not work. You will have to wait for the maintainer to update, use a different buildpack or fix the buildpack yourself and use that. Following this step by step is similar to deploying an entirely fresh app.
Please read CONTRIBUTING.md for details on our code of conduct, and the process for submitting pull requests to us.
This project is licensed under the MIT License - see the LICENSE.md file for details.