Spaces:
Sleeping
Sleeping
trying spaces hehe
Browse files- src/pages/index.tsx +2 -2
src/pages/index.tsx
CHANGED
@@ -95,7 +95,7 @@ export default function OpenSourceHeatmap() {
|
|
95 |
|
96 |
const allModelData = await Promise.all(
|
97 |
uniqueAuthors.map(async (author) => {
|
98 |
-
const response = await fetch(`https://huggingface.co/api/
|
99 |
const data = await response.json();
|
100 |
return data.map((item: any) => ({
|
101 |
createdAt: item.createdAt,
|
@@ -145,7 +145,7 @@ export default function OpenSourceHeatmap() {
|
|
145 |
hideTotalCount
|
146 |
renderBlock={(block, activity) => (
|
147 |
<Tooltip
|
148 |
-
title={`${activity.count}
|
149 |
arrow
|
150 |
>
|
151 |
{block}
|
|
|
95 |
|
96 |
const allModelData = await Promise.all(
|
97 |
uniqueAuthors.map(async (author) => {
|
98 |
+
const response = await fetch(`https://huggingface.co/api/spaces?author=${author}&sort=createdAt&direction=-1`);
|
99 |
const data = await response.json();
|
100 |
return data.map((item: any) => ({
|
101 |
createdAt: item.createdAt,
|
|
|
145 |
hideTotalCount
|
146 |
renderBlock={(block, activity) => (
|
147 |
<Tooltip
|
148 |
+
title={`${activity.count} Spaces created on ${activity.date}`}
|
149 |
arrow
|
150 |
>
|
151 |
{block}
|