Skip to content

Commit

Permalink
predowload whisper model
Browse files Browse the repository at this point in the history
  • Loading branch information
guillaume-chervet committed Nov 12, 2024
1 parent 73eecd6 commit aaafc12
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 5 deletions.
10 changes: 5 additions & 5 deletions production/docker-compose.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -37,11 +37,11 @@ services:
redis:
condition: service_healthy
webapp:
build:
context: ./webapp
dockerfile: ./Dockerfile
image: local.io/webapp-transcriptor:local
#image: ghcr.io/guillaume-chervet/transcriptor-api:0.77.26
# build:
# context: ./webapp
# dockerfile: ./Dockerfile
#image: local.io/webapp-transcriptor:local
image: ghcr.io/guillaume-chervet/transcriptor-webapp:0.77.28
restart: "no"
ports:
- "4000:8080"
Expand Down
3 changes: 3 additions & 0 deletions production/ia-worker/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -68,5 +68,8 @@ USER appuser
# Ajouter l'environnement virtuel au PATH
ENV PATH="/usr/local/bin:${PATH}"

RUN pyhton -c "import whisper \
whisper.load_model('small')"

# Commande pour démarrer l'application
CMD ["python", "./app/main.py"]

0 comments on commit aaafc12

Please sign in to comment.