Skip to content

TegarAditya/IoTanic-Classification-API

Repository files navigation

IoTanic Image Classification API

Getting Started

Prerequisites

  • Python 3.8 or higher
  • Docker (optional)
  • Intel AVX2 compatible CPU (for TensorFlow)

Direct Run

  1. Install dependencies

    pip install -r requirements.txt

    It is recommended to use a virtual environment.

  2. Copy .env.example to .env

    cp .env.example .env
  3. Start FastAPI process

    python ./app/main.py

    Or you can use uvicorn

    uvicorn app.main:app --port 8000 --reload

    Use --reload flag to enable auto-reload on code changes

  4. Open local API docs http://localhost:8000/docs

Using Docker

  1. Build Docker image
    docker compose build
  2. Run Docker container
    docker compose up -d

    Use -d flag to run in detached mode

About

IoTanic's CNN model implementation using FastAPI

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published