Spaces:
Paused
Paused
Upload folder using huggingface_hub
Browse files- src/app.js +2 -2
src/app.js
CHANGED
|
@@ -1852,8 +1852,8 @@ function saveThumbs(map) { localStorage.setItem(THUMB_KEY, JSON.stringify(map));
|
|
| 1852 |
function serverThumbUrl(name) {
|
| 1853 |
if (!name) return "";
|
| 1854 |
// Don't add timestamp for server-stored thumbnails (they are immutable)
|
| 1855 |
-
// Use
|
| 1856 |
-
return `https://huggingface.co/
|
| 1857 |
}
|
| 1858 |
// Show the avatar's representative image: prefer the server-stored thumbnail
|
| 1859 |
// (persisted on Space), fall back to freshly-captured local copy, then
|
|
|
|
| 1852 |
function serverThumbUrl(name) {
|
| 1853 |
if (!name) return "";
|
| 1854 |
// Don't add timestamp for server-stored thumbnails (they are immutable)
|
| 1855 |
+
// Use dataset repo (no Space rebuild on upload)
|
| 1856 |
+
return `https://huggingface.co/datasets/bep40/gemma-avatar-thumbnails/resolve/main/public/avatars/${name}.thumb.png`;
|
| 1857 |
}
|
| 1858 |
// Show the avatar's representative image: prefer the server-stored thumbnail
|
| 1859 |
// (persisted on Space), fall back to freshly-captured local copy, then
|