eduardo-alvarez commited on
Commit
6d60fea
1 Parent(s): f723d82

fixing df links

Browse files
Files changed (1) hide show
  1. app.py +4 -2
app.py CHANGED
@@ -169,7 +169,6 @@ with demo:
169
 
170
  initial_df = pd.read_csv("./status/leaderboard_status_041624.csv")
171
  initial_df["Model"] = f'<a target="_blank" href="{"https://huggingface.co/"+initial_df["Model"]}">{initial_df["Model"]}</a>'
172
- initial_df["Model"] = initial_df["Model"].astype("markdown")
173
 
174
  def update_df(hw_selected, platform_selected, affiliation_selected, size_selected, precision_selected, type_selected):
175
  filtered_df = filter_benchmarks_table(df=initial_df, hw_selected=hw_selected, platform_selected=platform_selected,
@@ -184,7 +183,10 @@ with demo:
184
  ["fp32","fp16","bf16","int8","fp8", "int4"],
185
  ["pretrained","fine-tuned","chat-models","merges/moerges"])
186
 
187
- gradio_df_display = gr.Dataframe(value=initial_filtered_df)
 
 
 
188
 
189
  filter_hw.change(fn=update_df,
190
  inputs=[filter_hw, filter_platform, filter_affiliation, filter_size, filter_precision, filter_type],
 
169
 
170
  initial_df = pd.read_csv("./status/leaderboard_status_041624.csv")
171
  initial_df["Model"] = f'<a target="_blank" href="{"https://huggingface.co/"+initial_df["Model"]}">{initial_df["Model"]}</a>'
 
172
 
173
  def update_df(hw_selected, platform_selected, affiliation_selected, size_selected, precision_selected, type_selected):
174
  filtered_df = filter_benchmarks_table(df=initial_df, hw_selected=hw_selected, platform_selected=platform_selected,
 
183
  ["fp32","fp16","bf16","int8","fp8", "int4"],
184
  ["pretrained","fine-tuned","chat-models","merges/moerges"])
185
 
186
+ gradio_df_display = gr.Dataframe(value=initial_filtered_df, headers=["Model","Average","Hardware","Model Type","Precision",
187
+ "Size","Infrastructure","ARC","HellaSwag","MMLU",
188
+ "TruthfulQA","Winogrande","Affiliation"],
189
+ datatype=["markdown","str","str","str","str","str","str","str","str","str","str","str","str"])
190
 
191
  filter_hw.change(fn=update_df,
192
  inputs=[filter_hw, filter_platform, filter_affiliation, filter_size, filter_precision, filter_type],