art-viewer / js /models-base.js
BigRed858's picture
Deploy the ARt Viewer
2777d13 verified
Raw History Blame Contribute Delete
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;