Sign inSign up

seoyunje/deepguard-fastapi

By seoyunje

•Updated 14 days ago

Image
2

1.9K

seoyunje/deepguard-fastapi repository overview

⁠DeepGuard FastAPI

REST API backend for DeepGuard, a deepfake detection service built around two custom hybrid CNN-ViT architectures (MS-EffViT, MS-EffGCViT).

Handles authentication, file upload, and dispatches async inference/explainability jobs to a Celery worker. Pairs with seoyunje/deepguard-celery, seoyunje/deepguard-mysql, seoyunje/deepguard-redis, and seoyunje/deepguard-react.

⁠What's inside

  • Python 3.11-slim base, CPU-only PyTorch/torchvision (no CUDA bundle)
  • FastAPI + Uvicorn, SQLAlchemy (async), Celery client, Redis session store
  • deepguard/inference/explainability/preprocess packages installed in editable mode

⁠Quick start

docker run -d \
  --name deepguard-fastapi \
  --network deepguard-network \
  -p 8000:8000 \
  -e DB_USER=deepguard \
  -e DB_PASSWORD=<password> \
  -e DB_HOST=deepguard-mysql \
  -e DB_PORT=3306 \
  -e DB_NAME=deepguard_db \
  -e REDIS_HOST=deepguard-redis \
  -e REDIS_PORT=6379 \
  -e HF_TOKEN=<your_huggingface_token> \
  -e CORS_ALLOWED_ORIGINS=http://localhost:3000 \
  -v deepguard-static:/app/App/static \
  seoyunje/deepguard-fastapi:1.0.0

Tag summary

Content type

Image

Digest

sha256:9e0319629…

Size

758.6 MB

Last updated

14 days ago

docker pull seoyunje/deepguard-fastapi:1.0.29