File size: 460 Bytes
e180a1f
 
 
 
 
 
 
2d75bf9
 
b7d5494
732009c
 
da0ec44
2d75bf9
732009c
 
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
# Based on Omar Sanseviero work
# Make model clickable link
def make_clickable_model(model_name):
    # remove user from model name
    model_name_show = ' '.join(model_name.split('/')[1:])

    link = "https://huggingface.co/" + model_name
    return f'<a target="_blank" href="{link}">{model_name_show}</a>'

def pass_emoji(passed):
    print("PASSED", passed)
    if passed is True:
        passed = "✅"
    else:
        passed = "❌"
    return passed