nerdimite / bert-web-app

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

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

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.

About

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


Languages

Language:Jupyter Notebook 44.6%Language:Python 24.0%Language:JavaScript 19.4%Language:HTML 12.0%