Upload folder using huggingface_hub
Browse files- Dockerfile +19 -0
- README.md +5 -5
Dockerfile
ADDED
|
@@ -0,0 +1,19 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
FROM python:3.12-slim
|
| 2 |
+
|
| 3 |
+
RUN apt-get update && apt-get install -y git ca-certificates
|
| 4 |
+
|
| 5 |
+
ADD https://timeapi.io/api/Time/current/zone?timeZone=Europe/Amsterdam v.json
|
| 6 |
+
|
| 7 |
+
RUN --mount=type=secret,id=GIT_REPO,mode=0444,required=true \
|
| 8 |
+
git clone $(cat /run/secrets/GIT_REPO) /app && \
|
| 9 |
+
chmod -R 777 /app
|
| 10 |
+
|
| 11 |
+
WORKDIR /app
|
| 12 |
+
|
| 13 |
+
RUN if [ -f packages.txt ]; then \
|
| 14 |
+
apt-get install -y $(cat packages.txt); \
|
| 15 |
+
fi
|
| 16 |
+
|
| 17 |
+
RUN pip install --no-cache-dir -r requirements.txt
|
| 18 |
+
|
| 19 |
+
ENTRYPOINT ["/app/entrypoint.sh"]
|
README.md
CHANGED
|
@@ -1,10 +1,10 @@
|
|
| 1 |
---
|
| 2 |
-
title:
|
| 3 |
-
emoji:
|
| 4 |
-
colorFrom:
|
| 5 |
-
colorTo:
|
| 6 |
sdk: docker
|
| 7 |
pinned: false
|
| 8 |
---
|
| 9 |
|
| 10 |
-
Check out the configuration reference at https://huggingface.co/docs/hub/spaces-config-reference
|
|
|
|
| 1 |
---
|
| 2 |
+
title: DLSF-sense
|
| 3 |
+
emoji: 💬
|
| 4 |
+
colorFrom: gray
|
| 5 |
+
colorTo: gray
|
| 6 |
sdk: docker
|
| 7 |
pinned: false
|
| 8 |
---
|
| 9 |
|
| 10 |
+
Check out the configuration reference at https://huggingface.co/docs/hub/spaces-config-reference
|