Spaces:
Runtime error
Runtime error
Update file
Browse files- Dockerfile +8 -0
Dockerfile
CHANGED
@@ -3,6 +3,13 @@ FROM huggingface/transformers-pytorch-gpu:latest
|
|
3 |
RUN pip install --upgrade pip
|
4 |
RUN pip install transformers torch fastapi uvicorn
|
5 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
6 |
COPY app.py /app/app.py
|
7 |
|
8 |
WORKDIR /app
|
@@ -11,3 +18,4 @@ EXPOSE 8080
|
|
11 |
|
12 |
CMD ["uvicorn", "app:app", "--host", "0.0.0.0", "--port", "8080"]
|
13 |
|
|
|
|
3 |
RUN pip install --upgrade pip
|
4 |
RUN pip install transformers torch fastapi uvicorn
|
5 |
|
6 |
+
|
7 |
+
ENV TRANSFORMERS_CACHE=/tmp/huggingface_cache
|
8 |
+
|
9 |
+
|
10 |
+
ENV MODEL_NAME="your-username/your-finetuned-model"
|
11 |
+
ENV USE_FP16=True
|
12 |
+
|
13 |
COPY app.py /app/app.py
|
14 |
|
15 |
WORKDIR /app
|
|
|
18 |
|
19 |
CMD ["uvicorn", "app:app", "--host", "0.0.0.0", "--port", "8080"]
|
20 |
|
21 |
+
|