fdaudens HF staff commited on
Commit
86d51ae
·
verified ·
1 Parent(s): 3d0ebff

Update index.html

Browse files

added direct link to each card

Files changed (1) hide show
  1. index.html +4 -5
index.html CHANGED
@@ -194,7 +194,7 @@
194
  `,
195
  3: `
196
  <h2>Fast & Furious model releases</h2>
197
- <p>This race chart shows cumulative likes in relation to model releases on the HF Hub over the first 48 weeks of 2024, with Meta (US), Stability (UK) and Black Forest Labs (GER) leading the pack.</p>
198
  <div class="responsive-iframe-container">
199
  <button onclick="toggleFullscreen(this.nextElementSibling)" style="position: absolute; top: 10px; right: 10px; z-index: 10; padding: 8px; background: rgba(0,0,0,0.6); color: white; border: none; border-radius: 4px; cursor: pointer;">⛶</button>
200
  <iframe src="https://aiworld.eu/embed/model/author/racechart" allowfullscreen></iframe>
@@ -287,11 +287,10 @@
287
  `
288
  };
289
 
290
- // Add this function before the card creation loop
291
  function getCardLink(day) {
292
- const url = new URL(window.location.href);
293
- url.searchParams.set('day', day);
294
- return url.toString();
295
  }
296
 
297
  // Add this object before the card creation loop to define custom text labels
 
194
  `,
195
  3: `
196
  <h2>Fast & Furious model releases</h2>
197
+ <p>This race chart shows model development over the last 48 weeks, with Meta (US), Stability (UK) and Black Forest Labs (GER) leading in quantity.</p>
198
  <div class="responsive-iframe-container">
199
  <button onclick="toggleFullscreen(this.nextElementSibling)" style="position: absolute; top: 10px; right: 10px; z-index: 10; padding: 8px; background: rgba(0,0,0,0.6); color: white; border: none; border-radius: 4px; cursor: pointer;">⛶</button>
200
  <iframe src="https://aiworld.eu/embed/model/author/racechart" allowfullscreen></iframe>
 
287
  `
288
  };
289
 
290
+ // Update the getCardLink function
291
  function getCardLink(day) {
292
+ const rootUrl = "https://huggingface.co/spaces/huggingface/open-source-ai-year-in-review-2024";
293
+ return `${rootUrl}?day=${day}`;
 
294
  }
295
 
296
  // Add this object before the card creation loop to define custom text labels