# 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'{model_name_show}' # Make user clickable link def make_clickable_user(user_id): link = "https://huggingface.co./" + user_id return f'{user_id}'