sasha HF staff commited on
Commit
eb5bbd0
β€’
1 Parent(s): 5a87d4b

whats going on

Browse files
Files changed (1) hide show
  1. app.py +3 -3
app.py CHANGED
@@ -33,7 +33,7 @@ def get_all_plots():
33
  params_df= params_df.rename(columns={"Link": "model"})
34
  tasks_df = pd.merge(task_df, params_df, on='model')
35
  all_df = pd.DataFrame(columns = tasks_df.columns)
36
- all_df = pd.concat([all_df, tasks_df], ignore_index=True)
37
  all_df['Total GPU Energy (Wh)'] = all_df['total_gpu_energy']*1000
38
  all_df = all_df.sort_values(by=['Total GPU Energy (Wh)'])
39
  all_df['parameters'] = all_df['parameters'].apply(format_params)
@@ -73,7 +73,7 @@ def get_all_model_names():
73
  task_df= task_df.rename(columns={"Link": "model"})
74
  tasks_df = pd.merge(task_df, energy_df, on='model')
75
  all_df = pd.DataFrame(columns = tasks_df.columns)
76
- all_df = pd.concat([all_df, tasks_df], ignore_index=True)
77
  all_df=all_df.drop_duplicates(subset=['model'])
78
  all_df['Parameters'] = all_df['parameters'].apply(format_params)
79
  all_df['Model'] = all_df['model'].apply(make_link)
@@ -180,7 +180,7 @@ with demo:
180
  with gr.Column():
181
  plot = gr.Plot(get_all_plots)
182
  with gr.Column():
183
- table = gr.Dataframe(get_all_model_names)
184
 
185
  with gr.Accordion("Methodology", open = False):
186
  gr.Markdown(
 
33
  params_df= params_df.rename(columns={"Link": "model"})
34
  tasks_df = pd.merge(task_df, params_df, on='model')
35
  all_df = pd.DataFrame(columns = tasks_df.columns)
36
+ all_df = pd.concat([all_df, tasks_df])
37
  all_df['Total GPU Energy (Wh)'] = all_df['total_gpu_energy']*1000
38
  all_df = all_df.sort_values(by=['Total GPU Energy (Wh)'])
39
  all_df['parameters'] = all_df['parameters'].apply(format_params)
 
73
  task_df= task_df.rename(columns={"Link": "model"})
74
  tasks_df = pd.merge(task_df, energy_df, on='model')
75
  all_df = pd.DataFrame(columns = tasks_df.columns)
76
+ all_df = pd.concat([all_df, tasks_df])
77
  all_df=all_df.drop_duplicates(subset=['model'])
78
  all_df['Parameters'] = all_df['parameters'].apply(format_params)
79
  all_df['Model'] = all_df['model'].apply(make_link)
 
180
  with gr.Column():
181
  plot = gr.Plot(get_all_plots)
182
  with gr.Column():
183
+ table = gr.Dataframe(get_all_model_names, datatype="markdown")
184
 
185
  with gr.Accordion("Methodology", open = False):
186
  gr.Markdown(