sasha HF staff commited on
Commit
8eb2a95
β€’
1 Parent(s): 7e4fcf8
Files changed (1) hide show
  1. app.py +5 -1
app.py CHANGED
@@ -21,11 +21,15 @@ def get_plots(task):
21
  )
22
  return fig
23
 
 
 
 
 
24
  def get_model_names(task_data):
25
  #TODO: add link to results in model card of each model
26
  task_df= pd.read_csv('data/energy/'+task_data)
27
  task_df=task_df.drop_duplicates(subset=['model'])
28
- task_df['model'] = "["+ str(task_df['model'])+'](https://huggingface.co/'+str(task_df['model'])+")"
29
  model_names = task_df[['model']]
30
  return model_names
31
 
 
21
  )
22
  return fig
23
 
24
+ def make_link(mname):
25
+ link = "["+ str(mname)+'](https://huggingface.co/'+str(mname)+")"
26
+ return link
27
+
28
  def get_model_names(task_data):
29
  #TODO: add link to results in model card of each model
30
  task_df= pd.read_csv('data/energy/'+task_data)
31
  task_df=task_df.drop_duplicates(subset=['model'])
32
+ task_df['model'] = task_df['model'].apply(format_params)
33
  model_names = task_df[['model']]
34
  return model_names
35