Spaces:
Running
Running
coyotte508
commited on
Commit
·
8683e0d
1
Parent(s):
08012f0
Upgrade cli and delete tmp ref
Browse files- Dockerfile +1 -1
- build.sh +3 -2
Dockerfile
CHANGED
@@ -16,7 +16,7 @@ RUN corepack enable \
|
|
16 |
RUN pip install -U "huggingface_hub"
|
17 |
|
18 |
# Install hfjs cli
|
19 |
-
RUN npm install -g @huggingface/[email protected].
|
20 |
|
21 |
# Define a working directory
|
22 |
WORKDIR /app
|
|
|
16 |
RUN pip install -U "huggingface_hub"
|
17 |
|
18 |
# Install hfjs cli
|
19 |
+
RUN npm install -g @huggingface/[email protected].7
|
20 |
|
21 |
# Define a working directory
|
22 |
WORKDIR /app
|
build.sh
CHANGED
@@ -44,8 +44,9 @@ echo "Build completed successfully, uploading the build output..."
|
|
44 |
|
45 |
# Those commands use the HF_TOKEN in the environment
|
46 |
# maybe we should use a tmp build branch and upload to it to have no downtime
|
47 |
-
hfjs
|
48 |
hfjs upload $HF_SPACE_NAME $OUTPUT_PATH $OUTPUT_PATH --repo-type space --revision refs/tmp/build
|
49 |
-
hfjs
|
|
|
50 |
|
51 |
echo "Build and upload completed successfully."
|
|
|
44 |
|
45 |
# Those commands use the HF_TOKEN in the environment
|
46 |
# maybe we should use a tmp build branch and upload to it to have no downtime
|
47 |
+
hfjs branch create $HF_SPACE_NAME refs/tmp/build --repo-type space --empty --force
|
48 |
hfjs upload $HF_SPACE_NAME $OUTPUT_PATH $OUTPUT_PATH --repo-type space --revision refs/tmp/build
|
49 |
+
hfjs branch create $HF_SPACE_NAME refs/convert/build --repo-type space --revision refs/tmp/build --force
|
50 |
+
hfjs branch delete $HF_SPACE_NAME refs/tmp/build --repo-type space
|
51 |
|
52 |
echo "Build and upload completed successfully."
|