Spaces:
Runtime error
Runtime error
Commit
·
bc246eb
1
Parent(s):
86fd4cd
hmmm
Browse files- Dockerfile +6 -2
Dockerfile
CHANGED
|
@@ -47,9 +47,13 @@ RUN yarn build
|
|
| 47 |
RUN --mount=type=secret,id=HF_TOKEN,mode=0444,required=true \
|
| 48 |
echo "HF_TOKEN=$(cat /run/secrets/HF_TOKEN)" >> .env
|
| 49 |
|
| 50 |
-
RUN
|
| 51 |
|
| 52 |
-
RUN
|
|
|
|
|
|
|
|
|
|
|
|
|
| 53 |
|
| 54 |
ENV WIKISPEEDIA_DB_PATH=/home/user/app/wikihop.db
|
| 55 |
|
|
|
|
| 47 |
RUN --mount=type=secret,id=HF_TOKEN,mode=0444,required=true \
|
| 48 |
echo "HF_TOKEN=$(cat /run/secrets/HF_TOKEN)" >> .env
|
| 49 |
|
| 50 |
+
RUN echo $HF_TOKEN
|
| 51 |
|
| 52 |
+
RUN --mount=type=secret,id=HF_TOKEN,mode=0444,required=true \
|
| 53 |
+
curl https://huggingface.co/api/whoami-v2 -H "Authorization: Bearer $(cat /run/secrets/HF_TOKEN)"
|
| 54 |
+
|
| 55 |
+
RUN --mount=type=secret,id=HF_TOKEN,mode=0444,required=true \
|
| 56 |
+
curl -L https://huggingface.co/HuggingFaceTB/simplewiki-pruned-text-350k/resolve/main/wikihop.db -H "Authorization: Bearer $(cat /run/secrets/HF_TOKEN)" -o wikihop.db
|
| 57 |
|
| 58 |
ENV WIKISPEEDIA_DB_PATH=/home/user/app/wikihop.db
|
| 59 |
|