Update app.py
Browse files
app.py
CHANGED
@@ -99,27 +99,23 @@ def main():
|
|
99 |
|
100 |
# Display dataframe
|
101 |
full_df = convert_markdown_table_to_dataframe(content)
|
102 |
-
full_df = get_model_info(full_df)
|
103 |
for col in score_columns:
|
104 |
full_df[col] = full_df.to_numeric(full_df[col].str.strip(), errors='coerce')
|
|
|
105 |
df = pd.DataFrame(columns=full_df.columns)
|
106 |
|
107 |
# Toggles
|
108 |
-
col1, col2
|
109 |
with col1:
|
110 |
-
show_phi = st.toggle("Phi (2.8B)")
|
111 |
with col2:
|
112 |
-
show_mistral = st.toggle("Mistral (7B)")
|
113 |
-
with col3:
|
114 |
-
show_mistral = st.toggle("Mixtral (46.7B)")
|
115 |
|
116 |
# Apply filters based on toggles
|
117 |
if show_phi:
|
118 |
df = df.append(full_df[full_df['tags'].str.lower().str.contains('phi-msft')], ignore_index=True)
|
119 |
if show_mistral:
|
120 |
df = df.append(full_df[full_df['tags'].str.lower().str.contains('mistral')], ignore_index=True)
|
121 |
-
if show_mixtral:
|
122 |
-
df = df.append(full_df[full_df['tags'].str.lower().str.contains('mixtral')], ignore_index=True)
|
123 |
|
124 |
# Sort values
|
125 |
df = df.sort_values(by='Average', ascending=False)
|
@@ -172,6 +168,8 @@ def main():
|
|
172 |
|
173 |
* Change the `gist_id` in [yall.py](https://huggingface.co/spaces/mlabonne/Yet_Another_LLM_Leaderboard/blob/main/yall.py#L126).
|
174 |
* Create "New Secret" in Settings > Variables and secrets (name: "github", value: [your GitHub token](https://github.com/settings/tokens))
|
|
|
|
|
175 |
''')
|
176 |
|
177 |
if __name__ == "__main__":
|
|
|
99 |
|
100 |
# Display dataframe
|
101 |
full_df = convert_markdown_table_to_dataframe(content)
|
|
|
102 |
for col in score_columns:
|
103 |
full_df[col] = full_df.to_numeric(full_df[col].str.strip(), errors='coerce')
|
104 |
+
full_df = get_model_info(full_df)
|
105 |
df = pd.DataFrame(columns=full_df.columns)
|
106 |
|
107 |
# Toggles
|
108 |
+
col1, col2 = st.columns(2)
|
109 |
with col1:
|
110 |
+
show_phi = st.toggle("Phi (2.8B)", value=True)
|
111 |
with col2:
|
112 |
+
show_mistral = st.toggle("Mistral (7B)", value=True)
|
|
|
|
|
113 |
|
114 |
# Apply filters based on toggles
|
115 |
if show_phi:
|
116 |
df = df.append(full_df[full_df['tags'].str.lower().str.contains('phi-msft')], ignore_index=True)
|
117 |
if show_mistral:
|
118 |
df = df.append(full_df[full_df['tags'].str.lower().str.contains('mistral')], ignore_index=True)
|
|
|
|
|
119 |
|
120 |
# Sort values
|
121 |
df = df.sort_values(by='Average', ascending=False)
|
|
|
168 |
|
169 |
* Change the `gist_id` in [yall.py](https://huggingface.co/spaces/mlabonne/Yet_Another_LLM_Leaderboard/blob/main/yall.py#L126).
|
170 |
* Create "New Secret" in Settings > Variables and secrets (name: "github", value: [your GitHub token](https://github.com/settings/tokens))
|
171 |
+
|
172 |
+
A special thanks to [gblazex](https://huggingface.co/gblazex) for providing many evaluations.
|
173 |
''')
|
174 |
|
175 |
if __name__ == "__main__":
|