Skip to content

Code for the FullStack AI Live Coding Series- Part 2 (CellStrat AI Lab)

Notifications You must be signed in to change notification settings

nerdimite/bert-web-app

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

16 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

React Web App with Flask Backend for PyTorch Model

FullStack AI Series- Part 2 (CellStrat AI Lab)

This repository contains the code for React Web App with Flask Backend for PyTorch Model Session and is a part of the Full stack AI Love Coding Series at CellStrat AI Lab.

In this part, the BERT model that was trained in part 1 is wrapped around a React Frontend and Flask Backend for inference.

Checkout the code from the other parts here:

Usage

  1. Clone the repository
git clone https://github.com/theneuralbeing/bert-web-app.git
  1. Install the required python libraries by running pip install -r requirements.txt.

  2. Install node.js for running the react application.

  3. Download the trained sentiment analysis model inference.pth file.

  4. Move the downloaded pth file to the backend directory.

  5. Setup your react app by running npm install from the bert-app directory.

  6. Start your react app with npm start in the terminal.

  7. Open another terminal and cd to backend directory and start the flask server using this command python app.py.

  8. Now you can play around with your sentiment analysis web app.