Add Docker build and deploy pipeline
All checks were successful
deploy-ai / deploy (push) Successful in 2m56s
All checks were successful
deploy-ai / deploy (push) Successful in 2m56s
This commit is contained in:
30
.env.example
Normal file
30
.env.example
Normal 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>
|
||||
Reference in New Issue
Block a user