Skip to content

KentThompson/ProcessMonitor

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

11 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

ProcessMonitor

Process Monitor: A powerful zero-shot text classification exercise.

Project Overview

This is a full stack web application which uses the hugging face Zero-Shot Classification model, (specifically the facebook/bart-large-mnli model) to determine if processes, or actions, either comply with, or deviate from a provided guideline.

For example:

If the action is “Closed ticket #48219 and sent confirmation email” and the guideline is “All closed tickets must include a confirmation email”, then the expected result should be COMPLIES.

How to set up the project:

Hugging Face account

In order to run the project, you need for first create your own hugging face API read token.

  1. Create a free Hugging Face account at huggingface.co.
  2. In ProfileAccess Tokens, create a new Read token.

Next we need to set up our environments:

Frontend

Next we will set up the frontend .env.local file, which is currently set to default. This is mainly set up for future enhancements where the front end and the backend need to reside in different locations.

cd frontend/
cp .env.example .env.local

Backend

Next we will need to set up the backend .env file and use our hugging face API key created in the first step.

cd ../backend
cp .env.example .env
vim .env

then replace the HUGGINGFACE_API_KEY default value with your key from step 1.

How to run the project

Now that the environment is set up, "start the backend" in your terminal:

cd backend
npm install
npm run build
npm run start

Next, in a seperate terminal, "start the frontend":

cd frontend
npm install
npm run build
npm run start

Now open the browser and navigate to http://localhost:3000

How to run the tests

Tests are hosted in the backend. See backend README.

About

Process Monitor: A powerful zero-shot text classification exercise

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published