make the model be pre-loaded into the image
This commit is contained in:
parent
6eb24e74eb
commit
96e0615267
|
@ -5,6 +5,8 @@ COPY notescriber /app/notescriber
|
|||
COPY notescriber.py /app/notescriber.py
|
||||
COPY requirements.txt /app/requirements.txt
|
||||
COPY .config.yaml /app/.config.yaml
|
||||
COPY load_model.py /app/load_model.py
|
||||
WORKDIR /app
|
||||
|
||||
RUN pip install -r requirements.txt
|
||||
RUN pip install -r requirements.txt
|
||||
RUN /app/load_model.py
|
|
@ -0,0 +1,3 @@
|
|||
#!/usr/bin/env python
|
||||
import whisper
|
||||
model = whisper.load_model("base")
|
Loading…
Reference in New Issue