Spaces:
Sleeping
Sleeping
minor fix
Browse files
app.py
CHANGED
@@ -42,7 +42,7 @@ df["author"] = df["author"].apply(lambda x: clickable(x))
|
|
42 |
df['Total Usage'] = df[['models', 'datasets', 'spaces']].sum(axis=1)
|
43 |
df = df.sort_values(by='Total Usage', ascending=False)
|
44 |
|
45 |
-
sum_all_author = naturalsize(sum(
|
46 |
|
47 |
naturalsize_columns = ['Total Usage', 'models', 'datasets', 'spaces']
|
48 |
df[naturalsize_columns] = df[naturalsize_columns].applymap(naturalsize)
|
|
|
42 |
df['Total Usage'] = df[['models', 'datasets', 'spaces']].sum(axis=1)
|
43 |
df = df.sort_values(by='Total Usage', ascending=False)
|
44 |
|
45 |
+
sum_all_author = naturalsize(sum(df['models'].tolist()+df['datasets'].tolist()+df['spaces'].tolist()))
|
46 |
|
47 |
naturalsize_columns = ['Total Usage', 'models', 'datasets', 'spaces']
|
48 |
df[naturalsize_columns] = df[naturalsize_columns].applymap(naturalsize)
|