File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 1+ LOG_LEVEL = INFO
2+
13DEFAULT_MODEL_NAME = onnx-community/nsfw_image_detection-ONNX
24ACCESS_TOKEN =
5+ DEFAULT_FACE_DETECTION_MODEL_URL =
36
47# False == Public Access
58# True == Access Only with API Key
69USE_API_KEY = " False"
710API_KEY_HASH = " <YOUR_GENERATED_KEY_HASH_HERE>"
8- API_KEY_SALT = " <YOUR_GENERATED_SALT_HERE>"
9-
10- LOG_LEVEL = INFO
11+ API_KEY_SALT = " <YOUR_GENERATED_SALT_HERE>"
Original file line number Diff line number Diff line change @@ -21,14 +21,8 @@ services:
2121 - ./cropped_faces:/app/cropped_faces:rw
2222 - ./models:/root/.cache/huggingface/hub:rw
2323 - ./mediapipe_models:/app/mediapipe_models:rw
24- environment :
25- - DEFAULT_MODEL_NAME
26- - ACCESS_TOKEN
27- - DEFAULT_FACE_DETECTION_MODEL_URL
28- - USE_API_KEY
29- - API_KEY_HASH
30- - API_KEY_SALT
31- - LOG_LEVEL
24+ env_file :
25+ - .env
3226 restart : unless-stopped
3327` ` `
3428
@@ -39,7 +33,7 @@ services:
3933> You can find code examples in the [` examples`](./examples/) folder.
4034
4135# # Environment Variables
42- - Create a `.env` file and set the preferred values.
36+ - Create a [ `.env`](https://github.com/doppeltilde/vision_classification/blob/main/.env.example) file and set the preferred values.
4337` ` ` sh
4438DEFAULT_MODEL_NAME=
4539ACCESS_TOKEN=
Original file line number Diff line number Diff line change @@ -9,12 +9,6 @@ services:
99 - ./cropped_faces:/app/cropped_faces:rw
1010 - ./models:/root/.cache/huggingface/hub:rw
1111 - ./mediapipe_models:/app/mediapipe_models:rw
12- environment :
13- - DEFAULT_MODEL_NAME
14- - ACCESS_TOKEN
15- - DEFAULT_FACE_DETECTION_MODEL_URL
16- - USE_API_KEY
17- - API_KEY_HASH
18- - API_KEY_SALT
19- - LOG_LEVEL
12+ env_file :
13+ - .env
2014 restart : unless-stopped
Original file line number Diff line number Diff line change @@ -11,14 +11,8 @@ services:
1111 replicas : 3
1212 restart_policy :
1313 condition : on-failure
14- environment :
15- - DEFAULT_MODEL_NAME
16- - ACCESS_TOKEN
17- - DEFAULT_FACE_DETECTION_MODEL_URL
18- - USE_API_KEY
19- - API_KEY_HASH
20- - API_KEY_SALT
21- - LOG_LEVEL
14+ env_file :
15+ - .env
2216 restart : unless-stopped
2317 networks :
2418 - vision-network
Original file line number Diff line number Diff line change @@ -7,12 +7,6 @@ services:
77 - ./cropped_faces:/app/cropped_faces:rw
88 - ./models:/root/.cache/huggingface/hub:rw
99 - ./mediapipe_models:/app/mediapipe_models:rw
10- environment :
11- - DEFAULT_MODEL_NAME
12- - ACCESS_TOKEN
13- - DEFAULT_FACE_DETECTION_MODEL_URL
14- - USE_API_KEY
15- - API_KEY_HASH
16- - API_KEY_SALT
17- - LOG_LEVEL
10+ env_file :
11+ - .env
1812 restart : unless-stopped
Original file line number Diff line number Diff line change @@ -2,7 +2,7 @@ fastapi[standard]==0.116.1
22Pillow == 11.3.0
33filetype == 1.2.0
44torch == 2.7.1
5- optimum [onnxruntime ]== 1.26.1
5+ optimum [onnxruntime ]== 1.27.0
66python-dotenv == 1.1.1
77mediapipe
88numpy
You can’t perform that action at this time.
0 commit comments