Spaces:
Running
Running
or this?
Browse files
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'] =
|
| 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 |
|