Spaces:
Build error
Build error
Remove HuggingFace token validation from Dockerfile
Browse files- Dockerfile +0 -4
Dockerfile
CHANGED
|
@@ -9,8 +9,4 @@ COPY . .
|
|
| 9 |
|
| 10 |
EXPOSE 8000
|
| 11 |
|
| 12 |
-
RUN --mount=type=secret,id=HUGGINGFACE_TOKEN,mode=0444,required=true \
|
| 13 |
-
test -f /run/secrets/HUGGINGFACE_TOKEN && echo "Secret exists!"
|
| 14 |
-
# https://api-inference.huggingface.co/models/gpt2 -d '{"inputs":"Hello"}' | grep 200
|
| 15 |
-
|
| 16 |
CMD ["uvicorn", "app:app", "--host", "0.0.0.0", "--port", "8000"]
|
|
|
|
| 9 |
|
| 10 |
EXPOSE 8000
|
| 11 |
|
|
|
|
|
|
|
|
|
|
|
|
|
| 12 |
CMD ["uvicorn", "app:app", "--host", "0.0.0.0", "--port", "8000"]
|