mlabonne commited on
Commit
ac6a6cc
1 Parent(s): 2aed67d

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +15 -2
app.py CHANGED
@@ -161,9 +161,22 @@ def main():
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"):
 
161
  height=int(len(df) * 36.2),
162
  )
163
 
164
+ # Comparison between models
165
+ selected_models = st.multiselect('Select models to compare', df['Model'].unique(), use_container_width=True)
166
  comparison_df = df[df['Model'].isin(selected_models)]
167
+ st.dataframe(
168
+ comparison_df,
169
+ use_container_width=True,
170
+ column_config={
171
+ "Likes": st.column_config.NumberColumn(
172
+ "Likes",
173
+ help="Number of likes on Hugging Face",
174
+ format="%d ❤️",
175
+ ),
176
+ "URL": st.column_config.LinkColumn("URL"),
177
+ },
178
+ hide_index=True,
179
+ )
180
 
181
  # Add a button to export data to CSV
182
  if st.button("Export to CSV"):