Skip to content

Latest commit

 

History

History
50 lines (42 loc) · 1.17 KB

README.md

File metadata and controls

50 lines (42 loc) · 1.17 KB

EmoVision-Web

This is the web application for EmoVision, a project that uses machine learning to detect emotions in images.

Installation

fastapi-server

  1. Set up virtual environment
cd fastapi-server
python3 -m venv .venv               # python3 or python depending on your system config
source .venv/bin/activate           # for linux and macOS
  1. Install dependencies
pip3 install -r requirements.txt    # pip3 or pip depending on your system config
  1. Run the server
uvicorn app.main:app --reload

Backend server will be running at http://localhost:8000

next-client (frontend)

cd next-client
npm install
npm run dev

Docker

  1. Build the image
cd fastapi-server
docker build -t emovision-server .  
  1. Run the container
docker run -d --name emovision-server-container --env-file .env -p 8000:8000 emovision-server

Detached mode

docker run --name emovision-server-container --env-file .env -p 8000:8000 emovision-server

Interactive mode

License

This project is licensed under the MIT License - see the LICENSE file for details.