Skip to content

Latest commit

 

History

History
32 lines (22 loc) · 1.06 KB

README.md

File metadata and controls

32 lines (22 loc) · 1.06 KB

ziadhany

Project Overview

Emotion detection from text, simple flask app with j-hartmann/emotion-english-distilroberta-base pre-train model

screencast_fcOAwRtd.mp4

Setup the Environment

  • Create a virtualenv with Python and activate it. Refer to this link for help on specifying the Python version in the virtualenv.
python3 -m pip install --user virtualenv
python3 -m virtualenv --python=<path-to-python3.x> .devops
source .devops/bin/activate
  • Run make install to install the necessary dependencies
  • just download a pre-trained model make download_model_data

Running app.py

  1. Standalone: python app.py
  2. Run in Docker: ./run_docker.sh
  3. Run in Kubernetes: ./run_kubernetes.sh

Kubernetes Steps

  • Setup and Configure Docker locally
  • Setup and Configure Kubernetes locally
  • Create Flask app in Container
  • Run via kubectl