Update app.py
Browse files
app.py
CHANGED
|
@@ -78,15 +78,18 @@ def main():
|
|
| 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 |
-
|
| 83 |
-
|
|
|
|
|
|
|
|
|
|
| 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('
|
| 90 |
|
| 91 |
st.dataframe(df, use_container_width=True)
|
| 92 |
|
|
|
|
| 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 in a single row
|
| 82 |
+
col1, col2 = st.columns(2)
|
| 83 |
+
with col1:
|
| 84 |
+
show_phi = st.checkbox("Phi", value=True)
|
| 85 |
+
with col2:
|
| 86 |
+
show_mistral = st.checkbox("Mistral", value=True)
|
| 87 |
|
| 88 |
# Apply filters based on toggles
|
| 89 |
if not show_phi:
|
| 90 |
df = df[~df['Model'].str.lower().str.contains('phi')]
|
| 91 |
if not show_mistral:
|
| 92 |
+
df = df[~df['Model'].str.lower().str.contains('mistral')]
|
| 93 |
|
| 94 |
st.dataframe(df, use_container_width=True)
|
| 95 |
|