Spaces:
Running
Running
Update Dockerfile
Browse files- Dockerfile +4 -3
Dockerfile
CHANGED
|
@@ -4,6 +4,7 @@ WORKDIR /app
|
|
| 4 |
|
| 5 |
# System deps
|
| 6 |
RUN apt-get update && apt-get install -y \
|
|
|
|
| 7 |
git \
|
| 8 |
curl \
|
| 9 |
&& rm -rf /var/lib/apt/lists/*
|
|
@@ -12,10 +13,10 @@ RUN apt-get update && apt-get install -y \
|
|
| 12 |
COPY requirements.txt .
|
| 13 |
RUN pip install --no-cache-dir -r requirements.txt
|
| 14 |
|
| 15 |
-
# Pre-download model (
|
| 16 |
RUN python -c "from transformers import AutoTokenizer, AutoModelForCausalLM; \
|
| 17 |
-
AutoTokenizer.from_pretrained('
|
| 18 |
-
AutoModelForCausalLM.from_pretrained('
|
| 19 |
|
| 20 |
# Copy app
|
| 21 |
COPY app.py .
|
|
|
|
| 4 |
|
| 5 |
# System deps
|
| 6 |
RUN apt-get update && apt-get install -y \
|
| 7 |
+
ffmpeg \
|
| 8 |
git \
|
| 9 |
curl \
|
| 10 |
&& rm -rf /var/lib/apt/lists/*
|
|
|
|
| 13 |
COPY requirements.txt .
|
| 14 |
RUN pip install --no-cache-dir -r requirements.txt
|
| 15 |
|
| 16 |
+
# Pre-download model (prevents runtime failures)
|
| 17 |
RUN python -c "from transformers import AutoTokenizer, AutoModelForCausalLM; \
|
| 18 |
+
AutoTokenizer.from_pretrained('TinyLlama/TinyLlama-1.1B-Chat-v1.0'); \
|
| 19 |
+
AutoModelForCausalLM.from_pretrained('TinyLlama/TinyLlama-1.1B-Chat-v1.0')"
|
| 20 |
|
| 21 |
# Copy app
|
| 22 |
COPY app.py .
|