File size: 1,340 Bytes
be1db9d
 
6147059
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
be1db9d
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
<!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
        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>