import json with open("model_info.json", "r") as f: model_info = json.load(f) def make_clickable_model(model_name): global model_info if model_name in model_info: if model_info[model_name]["hf_model_id"].startswith("http"): link = model_info[model_name]["hf_model_id"] return f'🔒 {model_info[model_name]["pretty_name"]}' else: link = f"https://huggingface.co/{model_info[model_name]['hf_model_id']}" return f'🔥 {model_info[model_name]["pretty_name"]}' else: return model_name def styled_error(error): return f"

{error}

" def styled_warning(warn): return f"

{warn}

" def styled_message(message): return f"

{message}

"