mlabonne commited on
Commit
e4fc9c8
1 Parent(s): eb4cda3

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +20 -20
app.py CHANGED
@@ -106,30 +106,30 @@ def main():
106
  full_df['tags'] = full_df['tags'].fillna('')
107
  df = pd.DataFrame(columns=full_df.columns)
108
 
109
- # Toggles
110
- col1, col2 = st.columns(2)
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
-
118
 
119
- if show_phi:
120
- dfs_to_concat.append(full_df[full_df['tags'].str.lower().str.contains('phi-msft')])
121
- if show_mistral:
122
- dfs_to_concat.append(full_df[full_df['tags'].str.lower().str.contains('mistral')])
123
 
124
- # Concatenate the DataFrames
125
- if dfs_to_concat:
126
- df = pd.concat(dfs_to_concat, ignore_index=True)
127
 
128
- # Sort values
129
- df = df.sort_values(by='Average', ascending=False)
130
 
131
- # Display the DataFrame
132
- st.dataframe(df[['Model'] + score_columns + ['Likes']], use_container_width=True)
 
133
 
134
  # Full-width plot for the first category
135
  create_bar_chart(df, score_columns[0])
 
106
  full_df['tags'] = full_df['tags'].fillna('')
107
  df = pd.DataFrame(columns=full_df.columns)
108
 
109
+ # # Toggles
110
+ # col1, col2 = st.columns(2)
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
 
118
+ # if show_phi:
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:
125
+ # df = pd.concat(dfs_to_concat, ignore_index=True)
126
 
127
+ # # Sort values
128
+ # df = df.sort_values(by='Average', ascending=False)
129
 
130
+ # # Display the DataFrame
131
+ # st.dataframe(df[['Model'] + score_columns + ['Likes']], use_container_width=True)
132
+ st.dataframe(full_df, use_container_width=True)
133
 
134
  # Full-width plot for the first category
135
  create_bar_chart(df, score_columns[0])