This project is a web application built with Flask that predicts future DBS share prices based on the SGD to USD exchange rate using a pre-trained linear regression model.
- Follow these steps to set up and run the application locally:
- Create a Virtual Environment:
- Before running the application, create a virtual environment to manage dependencies:
python -m venv venv
-
Activate the Virtual Environment:
- On Windows:
.\venv\Scripts\activate - On Mac/Linux:
source venv/bin/activate
- On Windows:
-
Install Required Packages:
pip install -r requirements.txt -
Run the Python Model Script: - This script will create the linear regression model and save it for use by the Flask app:
python model.py -
Run the Flask Application: - Start the Flask web server:
python app.py -
Access the Application:
- Open your web browser and navigate to http://127.0.0.1:5000/ to use the app.