Upload folder using huggingface_hub
Browse files- Dockerfile +3 -3
Dockerfile
CHANGED
|
@@ -21,9 +21,9 @@ ENV PYTHONPATH=/home/user/app/src TEXTAL_DATA=/home/user/data
|
|
| 21 |
# Keep downloads and extraction out of container startup. Pin a dataset commit
|
| 22 |
# with this build argument when publishing a new data release.
|
| 23 |
ARG DATASET_REVISION=main
|
| 24 |
-
RUN hf download alstonlo/textal-data
|
| 25 |
-
|
| 26 |
-
--local-dir "$TEXTAL_DATA" \
|
| 27 |
&& cd "$TEXTAL_DATA" && tar -xf texts.tar && tar -xf files.tar && rm texts.tar files.tar
|
| 28 |
|
| 29 |
COPY --chown=user src/viz src/viz
|
|
|
|
| 21 |
# Keep downloads and extraction out of container startup. Pin a dataset commit
|
| 22 |
# with this build argument when publishing a new data release.
|
| 23 |
ARG DATASET_REVISION=main
|
| 24 |
+
RUN hf download alstonlo/textal-data \
|
| 25 |
+
entries.parquet papers.parquet snapshot.json texts.tar files.tar \
|
| 26 |
+
--repo-type dataset --revision "$DATASET_REVISION" --local-dir "$TEXTAL_DATA" \
|
| 27 |
&& cd "$TEXTAL_DATA" && tar -xf texts.tar && tar -xf files.tar && rm texts.tar files.tar
|
| 28 |
|
| 29 |
COPY --chown=user src/viz src/viz
|