Spaces:
Running
Running
<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 | |
window.ATLAS_REMOTE_DATA_URL = "https://huggingface.co/datasets/davanstrien/test-atlas-data/resolve/main/dataset.parquet"; | |
// 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:', window.ATLAS_REMOTE_DATA_URL); | |
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> | |