Skip to content

This is a template of integrating a ML Model using React and Flask.The ML model used here predicts car prices using Lasso Regression based on its specifications mentioned by the user.

License

Notifications You must be signed in to change notification settings

GouravDutta-01/react-flask

Folders and files

NameName
Last commit message
Last commit date

Latest commit

d0b7749 · Jan 7, 2024

History

11 Commits
Jan 5, 2024
Jan 5, 2024
Jan 5, 2024
Jan 7, 2024
Jan 5, 2024

Repository files navigation

react-flask

Overview

This is a template of integrating a ML Model using React and Flask. This integration allows a React frontend to send data to the Flask backend, which in turn uses the ML model to perform predictions and returns the results back to the React UI.

Getting Started

To run this app locally on your PC, follow these steps :

  1. Clone this repository to your local machine :
    git clone https://github.com/GouravDutta-01/react-flask.git
    cd react-flask
  2. Make sure you have Python and NodeJs installed on your PC
  3. Install the required dependencies for the Flask API :
    cd backend
    pip install -r requirements.txt
    cd ..
  4. Install the required dependencies for the React app :
    cd frontend
    npm install
    cd ..
  5. Run the Flask API server :
    cd backend
    python app.py
  6. Run the React Web Application :
    cd frontend
    npm start
  7. Open your browser and visit http://localhost:3000 to access the react web application.

About

This is a template of integrating a ML Model using React and Flask.The ML model used here predicts car prices using Lasso Regression based on its specifications mentioned by the user.

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published