Spaces:
Runtime error
Runtime error
fix
Browse files
app.py
CHANGED
@@ -119,7 +119,7 @@ def main():
|
|
119 |
df = pd.concat(dfs_to_concat, ignore_index=True)
|
120 |
|
121 |
# Sort values
|
122 |
-
df = df.sort_values(by='
|
123 |
|
124 |
# Add a search bar
|
125 |
search_query = st.text_input("Search models", "")
|
|
|
119 |
df = pd.concat(dfs_to_concat, ignore_index=True)
|
120 |
|
121 |
# Sort values
|
122 |
+
df = df.sort_values(by='Elo', ascending=False)
|
123 |
|
124 |
# Add a search bar
|
125 |
search_query = st.text_input("Search models", "")
|
yall.py
CHANGED
@@ -78,15 +78,15 @@ def create_yall():
|
|
78 |
]
|
79 |
|
80 |
# Sort the list by average
|
81 |
-
gist_infos = sorted(gist_infos, key=lambda x: x.
|
82 |
|
83 |
# Create markdown table
|
84 |
-
markdown_table = "| Model |
|
85 |
-
markdown_table += "
|
86 |
|
87 |
for gist in gist_infos:
|
88 |
model_link = f"[{gist.model_id}](https://huggingface.co/{gist.model_id})"
|
89 |
-
markdown_table += f"| {model_link} [📄]({gist.url}) | {gist.
|
90 |
|
91 |
# Update YALL's gist with dummy gist ID and token
|
92 |
update_gist(content=markdown_table, gist_id="dummy_gist_id_yall", access_token="dummy_access_token")
|
|
|
78 |
]
|
79 |
|
80 |
# Sort the list by average
|
81 |
+
gist_infos = sorted(gist_infos, key=lambda x: x.elo, reverse=True)
|
82 |
|
83 |
# Create markdown table
|
84 |
+
markdown_table = "| Model | Elo |\n"
|
85 |
+
markdown_table += "|---|---:|\n"
|
86 |
|
87 |
for gist in gist_infos:
|
88 |
model_link = f"[{gist.model_id}](https://huggingface.co/{gist.model_id})"
|
89 |
+
markdown_table += f"| {model_link} [📄]({gist.url}) | {gist.elo}\n"
|
90 |
|
91 |
# Update YALL's gist with dummy gist ID and token
|
92 |
update_gist(content=markdown_table, gist_id="dummy_gist_id_yall", access_token="dummy_access_token")
|