trying markdown links
Browse files
app.py
CHANGED
@@ -25,6 +25,7 @@ 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 |
model_names = task_df[['model']]
|
29 |
return model_names
|
30 |
|
@@ -36,6 +37,7 @@ def format_params(num):
|
|
36 |
return f'{num // 1000000}M'
|
37 |
|
38 |
|
|
|
39 |
demo = gr.Blocks()
|
40 |
|
41 |
with demo:
|
|
|
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 |
|
|
|
37 |
return f'{num // 1000000}M'
|
38 |
|
39 |
|
40 |
+
|
41 |
demo = gr.Blocks()
|
42 |
|
43 |
with demo:
|