Skip to content

Commit fc9a55f

Browse files
committed
bump
1 parent 1b27b29 commit fc9a55f

6 files changed

Lines changed: 14 additions & 37 deletions

File tree

.env.example

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,11 @@
1+
LOG_LEVEL=INFO
2+
13
DEFAULT_MODEL_NAME=onnx-community/nsfw_image_detection-ONNX
24
ACCESS_TOKEN=
5+
DEFAULT_FACE_DETECTION_MODEL_URL=
36

47
# False == Public Access
58
# True == Access Only with API Key
69
USE_API_KEY="False"
710
API_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>"

README.md

Lines changed: 3 additions & 9 deletions
Original file line numberDiff line numberDiff 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
4438
DEFAULT_MODEL_NAME=
4539
ACCESS_TOKEN=

docker-compose.dev.yml

Lines changed: 2 additions & 8 deletions
Original file line numberDiff line numberDiff 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

docker-compose.swarm.yml

Lines changed: 2 additions & 8 deletions
Original file line numberDiff line numberDiff 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

docker-compose.yml

Lines changed: 2 additions & 8 deletions
Original file line numberDiff line numberDiff 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

requirements.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ fastapi[standard]==0.116.1
22
Pillow==11.3.0
33
filetype==1.2.0
44
torch==2.7.1
5-
optimum[onnxruntime]==1.26.1
5+
optimum[onnxruntime]==1.27.0
66
python-dotenv==1.1.1
77
mediapipe
88
numpy

0 commit comments

Comments
 (0)