Spaces:
Running
Running
Download js/models-base.js from BlueCairo/art-viewer: direct link, hf CLI and curl.
- Browser
- Download file 371 Bytes
-
https://huggingface.co/spaces/BlueCairo/art-viewer/resolve/main/js/models-base.js
- Command line
-
hf download hf://spaces/BlueCairo/art-viewer/js/models-base.js
-
curl -L -o models-base.js https://huggingface.co/spaces/BlueCairo/art-viewer/resolve/main/js/models-base.js
371 Bytes
| // Where the model files live: this site's models/ folder, or, for the hosted viewer, the address set in | |
| // <main data-models="..."> (the Hugging Face repo that holds a copy of the same folder, same layout). | |
| const SITE = new URL('../', import.meta.url).href; | |
| export const MODELS = new URL(document.querySelector('[data-models]')?.dataset.models || 'models/', SITE).href; | |