TITLE = """
{msg}
" def format_warning(msg): return f"{msg}
" def format_log(msg): return f"{msg}
" def hyperlink(link_url: str, text: str = "🔗") -> str: if not link_url or not isinstance(link_url, str): return str(text) # Or simply "" if link_url is bad # Using a simpler style here for broad compatibility, your original style is fine too. return f'{text}' def hf_uri_to_web_url(uri: str) -> str: """ Convert a Hugging Face-style URI like: hf://datasets/{namespace}/{repo}/{path...} into a public web URL: https://huggingface.co/datasets/{namespace}/{repo}/tree/main/{path...} """ prefix = "hf://datasets/" if not uri.startswith(prefix): raise ValueError("URI must start with 'hf://datasets/'") parts = uri[len(prefix) :].split("/", 2) if len(parts) < 3: raise ValueError("Expected format: hf://datasets/{namespace}/{repo}/{path...}") namespace, repo, path = parts return f"https://huggingface.co/datasets/{namespace}/{repo}/tree/main/{path}" css = """ .submission-accordion { border-style: solid; border-width: 3px !important; border-color: #ec4899; } .submission-accordion span.svelte-1w6vloh { font-weight: bold !important; font-size: 1.2em !important; } #logo-image { margin: auto; max-width: 250px; height: auto; } .table-component{ height: auto !important; max-height: none !important; } .table-wrap { max-height: none !important; height: auto !important; overflow-y: visible !important; } /* --- New Rules for Table Density --- */ table.gr-table th, table.gr-table td { padding: 4px 4px !important; width: 1%; white-space: nowrap; } table.gr-table { font-size: 14px !important; } /* Example of making the "Agent" column (the 1st column) a bit wider if needed */ table.gr-table th:nth-child(1), table.gr-table td:nth-child(1) { min-width: 150px !important; white-space: normal !important; /* Allow agent names to wrap if long */ } .html-container { padding-top: 0 !important; } #scatter-disclaimer { color: #f0529c !important; } thead.svelte-1e98i6s th { background: white !important; } """