mlabonne commited on
Commit
1ac0a66
1 Parent(s): 59f2f34

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +11 -0
app.py CHANGED
@@ -77,6 +77,17 @@ def main():
77
  df = convert_markdown_table_to_dataframe(content)
78
  for col in score_columns:
79
  df[col] = pd.to_numeric(df[col].str.strip(), errors='coerce')
 
 
 
 
 
 
 
 
 
 
 
80
  st.dataframe(df, use_container_width=True)
81
 
82
  # Full-width plot for the first category
 
77
  df = convert_markdown_table_to_dataframe(content)
78
  for col in score_columns:
79
  df[col] = pd.to_numeric(df[col].str.strip(), errors='coerce')
80
+
81
+ # Toggles for Phi and Mistral
82
+ show_phi = st.checkbox("Phi", value=True)
83
+ show_mistral = st.checkbox("Mistral", value=True)
84
+
85
+ # Apply filters based on toggles
86
+ if not show_phi:
87
+ df = df[~df['Model'].str.lower().str.contains('phi')]
88
+ if not show_mistral:
89
+ df = df[df['Model'].str.contains('Mistral', case=False)]
90
+
91
  st.dataframe(df, use_container_width=True)
92
 
93
  # Full-width plot for the first category