Skip to content

Commit

Permalink
attempt to fix file paths
Browse files Browse the repository at this point in the history
  • Loading branch information
catherinesyeh committed Apr 28, 2023
1 parent 11dd2f1 commit b8d4d6e
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
4 changes: 2 additions & 2 deletions index.html
Original file line number Diff line number Diff line change
Expand Up @@ -13,8 +13,8 @@
name="description"
content="Interactive TSNE plots of query + key vectors generated from BERT"
/>
<meta property="og:image" content="img/socimg.png" />
<link rel="icon" type="image/png" href="img/fav.png" />
<meta property="og:image" content="./img/socimg.png" />
<link rel="icon" type="image/png" href="./img/fav.png" />

<!-- Fonts -->
<link rel="preconnect" href="https://fonts.googleapis.com" />
Expand Down
6 changes: 3 additions & 3 deletions main.js
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ function load_graph(layer, head) {
graph.html("<p class='emphasis loading'>loading...</p>"); // clear content + loading message

// change graph displayed on UI
let directory = "plots/";
let directory = "./plots/";
graph.load(directory + "layer" + layer + "_head" + head + ".html");
attn_filter.fadeIn();
}
Expand Down Expand Up @@ -48,9 +48,9 @@ function load_single_view(plot) {
}

function create_matrix(matrix, umap) {
let directory = "plot_imgs/";
let directory = "./plot_imgs/";
if (umap) { // switch directory for umap
directory = "umap_imgs/";
directory = "./umap_imgs/";
}
// generate matrix of all plots
let head_label = $("<p class='axis-label'><span class='head-axis'>head →</span><span class='layer-axis'>layer ↓</span></p>");
Expand Down

0 comments on commit b8d4d6e

Please sign in to comment.