Spaces:
Sleeping
Sleeping
Commit
·
ae52206
1
Parent(s):
325fff8
filter open llm board
Browse files
app.py
CHANGED
|
@@ -82,7 +82,7 @@ def load_data():
|
|
| 82 |
return ds_with_len
|
| 83 |
|
| 84 |
|
| 85 |
-
remove_orgs = {"HuggingFaceM4", "HuggingFaceBR4"}
|
| 86 |
|
| 87 |
|
| 88 |
columns_to_drop = [
|
|
@@ -116,32 +116,6 @@ def prep_dataframe(remove_orgs_and_users=remove_orgs, columns_to_drop=columns_to
|
|
| 116 |
return df
|
| 117 |
|
| 118 |
|
| 119 |
-
# def filter_df(
|
| 120 |
-
# df,
|
| 121 |
-
# created_after=None,
|
| 122 |
-
# create_before=None,
|
| 123 |
-
# min_likes=None,
|
| 124 |
-
# max_likes=None,
|
| 125 |
-
# min_len=None,
|
| 126 |
-
# max_len=None,
|
| 127 |
-
# min_downloads=None,
|
| 128 |
-
# max_downloads=None,
|
| 129 |
-
# ):
|
| 130 |
-
# if min_likes:
|
| 131 |
-
# df = df[df["likes"] >= min_likes]
|
| 132 |
-
# if max_likes:
|
| 133 |
-
# df = df[df["likes"] <= max_likes]
|
| 134 |
-
# if min_len:
|
| 135 |
-
# df = df[df["len"] >= min_len]
|
| 136 |
-
# if max_len:
|
| 137 |
-
# df = df[df["len"] <= max_len]
|
| 138 |
-
# if min_downloads:
|
| 139 |
-
# df = df[df["downloads"] >= min_downloads]
|
| 140 |
-
# if max_downloads:
|
| 141 |
-
# df = df[df["downloads"] <= max_downloads]
|
| 142 |
-
# return df
|
| 143 |
-
|
| 144 |
-
|
| 145 |
def filter_df_by_max_age(max_age_days=None):
|
| 146 |
df = prep_dataframe()
|
| 147 |
df = df.dropna(subset=["created"])
|
|
|
|
| 82 |
return ds_with_len
|
| 83 |
|
| 84 |
|
| 85 |
+
remove_orgs = {"HuggingFaceM4", "HuggingFaceBR4", "open-llm-leaderboard"}
|
| 86 |
|
| 87 |
|
| 88 |
columns_to_drop = [
|
|
|
|
| 116 |
return df
|
| 117 |
|
| 118 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 119 |
def filter_df_by_max_age(max_age_days=None):
|
| 120 |
df = prep_dataframe()
|
| 121 |
df = df.dropna(subset=["created"])
|