Spaces:
Runtime error
Runtime error
add multi selection based on CultriX's PR
Browse filesSee https://huggingface.co/spaces/mlabonne/Yet_Another_LLM_Leaderboard/discussions/9/files
app.py
CHANGED
|
@@ -161,6 +161,10 @@ def main():
|
|
| 161 |
height=int(len(df) * 36.2),
|
| 162 |
)
|
| 163 |
|
|
|
|
|
|
|
|
|
|
|
|
|
| 164 |
# Add a button to export data to CSV
|
| 165 |
if st.button("Export to CSV"):
|
| 166 |
# Export the DataFrame to CSV
|
|
|
|
| 161 |
height=int(len(df) * 36.2),
|
| 162 |
)
|
| 163 |
|
| 164 |
+
selected_models = st.multiselect('Select models to compare', df['Model'].unique())
|
| 165 |
+
comparison_df = df[df['Model'].isin(selected_models)]
|
| 166 |
+
st.dataframe(comparison_df)
|
| 167 |
+
|
| 168 |
# Add a button to export data to CSV
|
| 169 |
if st.button("Export to CSV"):
|
| 170 |
# Export the DataFrame to CSV
|