leandrodevai commited on
Commit
65fbd80
·
verified ·
1 Parent(s): a5c72cb

Sync from GitHub via hub-sync

Browse files
README.md CHANGED
@@ -216,10 +216,17 @@ options, but they are intentionally not required for the baseline deployment:
216
 
217
  ### Docker
218
 
219
- Build and run the FastAPI service:
220
 
221
  ```bash
222
- docker compose up --build api
 
 
 
 
 
 
 
223
  ```
224
 
225
  The API will be available at:
@@ -230,7 +237,7 @@ The API will be available at:
230
  Run the optional Gradio interface:
231
 
232
  ```bash
233
- docker compose --profile gradio up --build
234
  ```
235
 
236
  The Gradio UI will be available at http://localhost:7860.
@@ -259,7 +266,7 @@ To persist embeddings to disk, provide a database name:
259
 
260
  ```bash
261
  FACEVERIFICATION_VECTOR_DB_NAME=local-demo \
262
- docker compose -f docker-compose.yml -f docker-compose.persist.yml up --build api
263
  ```
264
 
265
  The base `docker-compose.yml` does not mount any volume, so the default
 
216
 
217
  ### Docker
218
 
219
+ Build the service images when the `Dockerfile` or dependencies change:
220
 
221
  ```bash
222
+ docker compose build api
223
+ docker compose build gradio
224
+ ```
225
+
226
+ Run the FastAPI service:
227
+
228
+ ```bash
229
+ docker compose --profile api up api
230
  ```
231
 
232
  The API will be available at:
 
237
  Run the optional Gradio interface:
238
 
239
  ```bash
240
+ docker compose --profile gradio up gradio
241
  ```
242
 
243
  The Gradio UI will be available at http://localhost:7860.
 
266
 
267
  ```bash
268
  FACEVERIFICATION_VECTOR_DB_NAME=local-demo \
269
+ docker compose -f docker-compose.yml -f docker-compose.persist.yml --profile api up api
270
  ```
271
 
272
  The base `docker-compose.yml` does not mount any volume, so the default
docker-compose.yml CHANGED
@@ -4,10 +4,11 @@ services:
4
  context: .
5
  target: fastapi
6
  image: faceverification:fastapi
 
 
7
  ports:
8
  - "8000:8000"
9
  environment:
10
- FACEVERIFICATION_DEVICE: cpu
11
  FACEVERIFICATION_DEMO_USERNAME: ${FACEVERIFICATION_DEMO_USERNAME:-demo}
12
  FACEVERIFICATION_DEMO_PASSWORD: ${FACEVERIFICATION_DEMO_PASSWORD:-demo123}
13
  FACEVERIFICATION_JWT_SECRET_KEY: ${FACEVERIFICATION_JWT_SECRET_KEY:-change-me-in-production-demo-secret-32-bytes-min}
@@ -30,6 +31,5 @@ services:
30
  ports:
31
  - "7860:7860"
32
  environment:
33
- FACEVERIFICATION_DEVICE: cpu
34
  FACEVERIFICATION_DEBUG: ${FACEVERIFICATION_DEBUG:-true}
35
  FACEVERIFICATION_LOG_FORMAT: ${FACEVERIFICATION_LOG_FORMAT:-text}
 
4
  context: .
5
  target: fastapi
6
  image: faceverification:fastapi
7
+ profiles:
8
+ - api
9
  ports:
10
  - "8000:8000"
11
  environment:
 
12
  FACEVERIFICATION_DEMO_USERNAME: ${FACEVERIFICATION_DEMO_USERNAME:-demo}
13
  FACEVERIFICATION_DEMO_PASSWORD: ${FACEVERIFICATION_DEMO_PASSWORD:-demo123}
14
  FACEVERIFICATION_JWT_SECRET_KEY: ${FACEVERIFICATION_JWT_SECRET_KEY:-change-me-in-production-demo-secret-32-bytes-min}
 
31
  ports:
32
  - "7860:7860"
33
  environment:
 
34
  FACEVERIFICATION_DEBUG: ${FACEVERIFICATION_DEBUG:-true}
35
  FACEVERIFICATION_LOG_FORMAT: ${FACEVERIFICATION_LOG_FORMAT:-text}
images/[Originals]/ROC.png DELETED
Binary file (59.7 kB)
 
images/[Originals]/confusion_matrix.png DELETED
Binary file (24.9 kB)