Closed Maxiviper117 closed 3 months ago
Figured it out.
const url = 'https://huggingface.co/datasets/path/to/dataset/file';
const response = await fetch(url, {
headers: {
Authorization: `Bearer <access_token>`
}
});
const data = await response.blob();
const blobUrl = URL.createObjectURL(data);
await SPLAT.Loader.LoadAsync(blobUrl , scene, () => {});
Currently, the
await SPLAT.Loader.LoadAsync
expects a public download URL to load the splat. But what if we want to access our own private repo splat file?