mount models

This commit is contained in:
ricwo 2022-11-11 08:10:46 +01:00
parent 50aa3ff62a
commit bbc60da35c
2 changed files with 8 additions and 2 deletions

View file

@ -17,7 +17,5 @@ WORKDIR /app
RUN pip install .
RUN python3 download_whisper_models.py --models tiny small base medium large
# open bash
CMD ["/bin/bash"]

View file

@ -9,6 +9,8 @@ services:
ports:
- "7000:7000"
command: whispering --language en --model medium --host 0.0.0.0 --port 7000 --device cuda --debug
volumes:
- /home/ubuntu/.cache/whisper:/root/.cache/whisper
deploy:
resources:
reservations:
@ -25,6 +27,8 @@ services:
expose:
- "7001"
command: whispering --language en --model medium --host 0.0.0.0 --port 7001 --device cuda --debug
volumes:
- /home/ubuntu/.cache/whisper:/root/.cache/whisper
deploy:
resources:
reservations:
@ -41,6 +45,8 @@ services:
expose:
- "7002"
command: whispering --language en --model medium --host 0.0.0.0 --port 7002 --device cuda --debug
volumes:
- /home/ubuntu/.cache/whisper:/root/.cache/whisper
deploy:
resources:
reservations:
@ -57,6 +63,8 @@ services:
expose:
- "7003"
command: whispering --language en --model medium --host 0.0.0.0 --port 7003 --device cuda --debug
volumes:
- /home/ubuntu/.cache/whisper:/root/.cache/whisper
deploy:
resources:
reservations: