ThomasSimonini's picture
Update utils.py
e68a829
raw
history blame contribute delete
460 Bytes
# 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