File size: 1,520 Bytes
a9a2df1 5c1a51d a9a2df1 |
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 |
<!doctype html>
<html>
<head>
<meta charset="UTF-8" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<title>Embedding Atlas</title>
<style>
html,
body {
overscroll-behavior-x: none;
}
</style>
<script type="text/javascript">
window.EMBEDDING_ATLAS_HOME = "viewer";
</script>
<script type="module" crossorigin src="./assets/index-JIydDwxo.js"></script>
<link rel="stylesheet" crossorigin href="./assets/index-DackhkDY.css">
<script>
// Override dataset URL to load from HF dataset repository
// The ?download=true parameter ensures proper CORS headers from HF CDN
window.ATLAS_REMOTE_DATA_URL = "https://huggingface.co/datasets/davanstrien/test-atlas-data-v2/resolve/main/dataset.parquet?download=true";
// Intercept fetch to redirect dataset.parquet requests
const originalFetch = window.fetch;
window.fetch = function(resource, init) {
if (typeof resource === 'string' && resource.includes('dataset.parquet')) {
console.log('Redirecting dataset.parquet to HF CDN:', window.ATLAS_REMOTE_DATA_URL);
// DuckDB WASM can handle the redirect and CORS from HF CDN
return originalFetch(window.ATLAS_REMOTE_DATA_URL, init);
}
return originalFetch(resource, init);
};
</script>
</head>
<body>
<div id="app" class="embedding-atlas-root"></div>
</body>
</html>
|