mirror of
https://github.com/shirayu/whispering.git
synced 2024-06-13 02:39:23 +00:00
mount models
This commit is contained in:
parent
50aa3ff62a
commit
bbc60da35c
|
@ -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"]
|
||||
|
|
|
@ -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:
|
||||
|
|
Loading…
Reference in a new issue