Spaces:
Running
Running
Update app.py
Browse files
app.py
CHANGED
@@ -107,11 +107,13 @@ def main():
|
|
107 |
df = pd.DataFrame(columns=full_df.columns)
|
108 |
|
109 |
# Toggles
|
110 |
-
col1, col2 = st.columns(
|
111 |
with col1:
|
112 |
show_phi = st.checkbox("Phi (2.8B)", value=True)
|
113 |
with col2:
|
114 |
show_mistral = st.checkbox("Mistral (7B)", value=True)
|
|
|
|
|
115 |
|
116 |
dfs_to_concat = []
|
117 |
|
@@ -119,6 +121,9 @@ def main():
|
|
119 |
dfs_to_concat.append(full_df[full_df['Tags'].str.lower().str.contains('phi-msft')])
|
120 |
if show_mistral:
|
121 |
dfs_to_concat.append(full_df[full_df['Tags'].str.lower().str.contains('mistral')])
|
|
|
|
|
|
|
122 |
|
123 |
# Concatenate the DataFrames
|
124 |
if dfs_to_concat:
|
|
|
107 |
df = pd.DataFrame(columns=full_df.columns)
|
108 |
|
109 |
# Toggles
|
110 |
+
col1, col2, col3 = st.columns(3)
|
111 |
with col1:
|
112 |
show_phi = st.checkbox("Phi (2.8B)", value=True)
|
113 |
with col2:
|
114 |
show_mistral = st.checkbox("Mistral (7B)", value=True)
|
115 |
+
with col3:
|
116 |
+
show_other = st.checkbox("Other", value=True)
|
117 |
|
118 |
dfs_to_concat = []
|
119 |
|
|
|
121 |
dfs_to_concat.append(full_df[full_df['Tags'].str.lower().str.contains('phi-msft')])
|
122 |
if show_mistral:
|
123 |
dfs_to_concat.append(full_df[full_df['Tags'].str.lower().str.contains('mistral')])
|
124 |
+
if show_other:
|
125 |
+
other_df = full_df[~full_df['Tags'].str.lower().str.contains('phi-msft|mistral')]
|
126 |
+
dfs_to_concat.append(other_df)
|
127 |
|
128 |
# Concatenate the DataFrames
|
129 |
if dfs_to_concat:
|