Add Docker build and deploy pipeline
All checks were successful
deploy-ai / deploy (push) Successful in 2m56s

This commit is contained in:
SlimusMinus
2026-10-07 23:53:52 +03:00
parent 848f40846a
commit a17829014b
14 changed files with 206 additions and 59 deletions

30
.env.example Normal file
View File

@@ -0,0 +1,30 @@
APP_NAME=AI Moderation Service
APP_VERSION=1.0.0
HOST=0.0.0.0
PORT=8000
DEBUG=true
# ===== AI =====
TEXT_MODEL=textdetox/bert-multilingual-toxicity-classifier
TEXT_TOXIC_THRESHOLD=0.90
IMAGE_MODEL=Falconsai/nsfw_image_detection
NSFW_THRESHOLD=0.85
IMAGE_CLIP_MODEL=openai/clip-vit-base-patch32
CLIP_THRESHOLD=0.75
WEAPON_MODEL=google/owlv2-base-patch16-ensemble
WEAPON_THRESHOLD=0.40
WEAPON_MIN_AREA_FRACTION=0.005
MODEL_CACHE_DIR=./models
DEVICE=auto
HF_TOKEN=<ваш-токен-hugging-face>