Spaces:
Runtime error
Runtime error
Commit
·
2c74e41
1
Parent(s):
d40c782
remove initial query
Browse files- pages/index.md +0 -38
pages/index.md
CHANGED
@@ -4,44 +4,6 @@ title: 🤗 Stats
|
|
4 |
|
5 |
# Hub Growth
|
6 |
|
7 |
-
```sql hub_growth
|
8 |
-
WITH all_data AS (
|
9 |
-
SELECT
|
10 |
-
DATE_TRUNC('month', CAST(createdAt AS DATE)) AS month,
|
11 |
-
'model' AS repo
|
12 |
-
FROM read_parquet('https://huggingface.co/datasets/cfahlgren1/hub-stats/resolve/refs%2Fconvert%2Fparquet/models/train/0000.parquet?download=true')
|
13 |
-
|
14 |
-
UNION ALL
|
15 |
-
|
16 |
-
SELECT
|
17 |
-
DATE_TRUNC('month', CAST(createdAt AS DATE)) AS month,
|
18 |
-
'dataset' AS repo
|
19 |
-
FROM read_parquet('https://huggingface.co/datasets/cfahlgren1/hub-stats/resolve/refs%2Fconvert%2Fparquet/datasets/train/0000.parquet?download=true')
|
20 |
-
|
21 |
-
UNION ALL
|
22 |
-
|
23 |
-
SELECT
|
24 |
-
DATE_TRUNC('month', CAST(createdAt AS DATE)) AS month,
|
25 |
-
'space' AS repo
|
26 |
-
FROM read_parquet('https://huggingface.co/datasets/cfahlgren1/hub-stats/resolve/refs%2Fconvert%2Fparquet/spaces/train/0000.parquet?download=true')
|
27 |
-
)
|
28 |
-
SELECT
|
29 |
-
month,
|
30 |
-
repo,
|
31 |
-
COUNT(*) AS creations
|
32 |
-
FROM all_data
|
33 |
-
WHERE month < DATE_TRUNC('month', CURRENT_DATE)
|
34 |
-
GROUP BY month, repo
|
35 |
-
ORDER BY month, repo
|
36 |
-
```
|
37 |
-
|
38 |
-
<AreaChart
|
39 |
-
data={hub_growth}
|
40 |
-
x=month
|
41 |
-
y=creations
|
42 |
-
series=repo
|
43 |
-
/>
|
44 |
-
|
45 |
|
46 |
# Model Licenses
|
47 |
|
|
|
4 |
|
5 |
# Hub Growth
|
6 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
7 |
|
8 |
# Model Licenses
|
9 |
|