-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #46 from linto-ai/houssem_speaker_identify_optim
Use Qdrant in Speaker Identification
- Loading branch information
Showing
17 changed files
with
776 additions
and
613 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,9 @@ | ||
SERVICE_MODE=http | ||
SERVICE_NAME=diarization | ||
SERVICES_BROKER=redis://172.17.0.1:6379 | ||
BROKER_PASS= | ||
CONCURRENCY=2 | ||
QDRANT_HOST=qdrant | ||
QDRANT_PORT=6333 | ||
QDRANT_COLLECTION_NAME=speaker_embeddings | ||
QDRANT_RECREATE_COLLECTION=true |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,16 +1,40 @@ | ||
version: '3.7' | ||
|
||
services: | ||
my-diarization-service: | ||
image: linto-diarization-simple:latest | ||
qdrant: | ||
image: qdrant/qdrant | ||
container_name: qdrant | ||
ports: | ||
- "6333:6333" # Qdrant default port | ||
volumes: | ||
- /path/to/shared/folder:/opt/audio | ||
env_file: .env | ||
deploy: | ||
replicas: 1 | ||
networks: | ||
- your-net | ||
- ./qdrant_storage:/qdrant/storage:z | ||
|
||
networks: | ||
your-net: | ||
external: true | ||
diarization_app: | ||
build: | ||
context : . | ||
dockerfile: pyannote/Dockerfile | ||
container_name: diarization_app | ||
shm_size: '1gb' | ||
stdin_open: true | ||
tty: true | ||
ports : | ||
- 8080:80 | ||
environment: | ||
- QDRANT_HOST | ||
- QDRANT_PORT | ||
- QDRANT_COLLECTION_NAME | ||
- QDRANT_RECREATE_COLLECTION | ||
- SERVICE_MODE | ||
- SERVICE_NAME | ||
- SERVICES_BROKER | ||
- CONCURRENCY | ||
volumes: | ||
- ./data/speakers_samples:/opt/speaker_samples # Reference Speaker samples | ||
- ./data/test_samples:/opt/audio # Test audio file (Celery task mode) | ||
depends_on: | ||
- qdrant # Ensure Qdrant starts before the app | ||
deploy: | ||
resources: | ||
reservations: | ||
devices: | ||
- driver: nvidia | ||
count: 1 | ||
capabilities: [gpu] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Empty file.
Oops, something went wrong.