Spaces:
Runtime error
Runtime error
Upload Dockerfile with huggingface_hub
Browse files- Dockerfile +1 -3
Dockerfile
CHANGED
|
@@ -7,9 +7,7 @@ RUN apt-get update && apt-get install -y espeak-ng nodejs curl && rm -rf /var/li
|
|
| 7 |
COPY ./requirements.txt /code/requirements.txt
|
| 8 |
RUN pip install --no-cache-dir --upgrade -r /code/requirements.txt
|
| 9 |
|
| 10 |
-
|
| 11 |
-
RUN python3 -c "from spacy.cli import download; download('en_core_web_sm')" && \
|
| 12 |
-
python3 -c "from kokoro import KModel, KPipeline; print('Caching model...'); KModel().to('cpu').eval(); print('Model OK'); KPipeline(lang_code='a', model=False); KPipeline(lang_code='b', model=False); print('Pipelines OK')"
|
| 13 |
|
| 14 |
COPY . .
|
| 15 |
|
|
|
|
| 7 |
COPY ./requirements.txt /code/requirements.txt
|
| 8 |
RUN pip install --no-cache-dir --upgrade -r /code/requirements.txt
|
| 9 |
|
| 10 |
+
RUN python3 -c "from spacy.cli import download; download('en_core_web_sm')"
|
|
|
|
|
|
|
| 11 |
|
| 12 |
COPY . .
|
| 13 |
|