Spaces:
Sleeping
Sleeping
Commit ·
6a8cad3
1
Parent(s): fc19dcf
update: export from starry-refactor 2026-02-20 15:06
Browse files- docker-entrypoint.sh +10 -1
docker-entrypoint.sh
CHANGED
|
@@ -113,8 +113,17 @@ hf_download() {
|
|
| 113 |
"https://huggingface.co/${HF_REPO}/resolve/main/${subdir}/${relpath}?download=true"; then
|
| 114 |
echo " $subdir/$relpath downloaded OK."
|
| 115 |
else
|
| 116 |
-
echo " WARNING: Failed to download $subdir/$relpath"
|
| 117 |
rm -f "$dest"
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 118 |
fi
|
| 119 |
}
|
| 120 |
|
|
|
|
| 113 |
"https://huggingface.co/${HF_REPO}/resolve/main/${subdir}/${relpath}?download=true"; then
|
| 114 |
echo " $subdir/$relpath downloaded OK."
|
| 115 |
else
|
|
|
|
| 116 |
rm -f "$dest"
|
| 117 |
+
# Retry with .pt extension (some .state.yaml best: fields omit the extension)
|
| 118 |
+
if curl -sfL $CURL_PROXY \
|
| 119 |
+
-H "Authorization: Bearer $HF_TOKEN" \
|
| 120 |
+
-o "${dest}.pt" \
|
| 121 |
+
"https://huggingface.co/${HF_REPO}/resolve/main/${subdir}/${relpath}.pt?download=true"; then
|
| 122 |
+
echo " $subdir/$relpath.pt downloaded OK (extension fallback)."
|
| 123 |
+
else
|
| 124 |
+
rm -f "${dest}.pt"
|
| 125 |
+
echo " WARNING: Failed to download $subdir/$relpath"
|
| 126 |
+
fi
|
| 127 |
fi
|
| 128 |
}
|
| 129 |
|