mle-bench-tabular / src /display /formatting.py
Sunmarinup's picture
Load leaderboard from GitHub (#1)
f2c74ae verified
def styled_error(error):
return f"<p style='color: red; font-size: 20px; text-align: center;'>{error}</p>"
def styled_warning(warn):
return f"<p style='color: orange; font-size: 20px; text-align: center;'>{warn}</p>"
def styled_message(message):
return f"<p style='color: green; font-size: 20px; text-align: center;'>{message}</p>"
def markdown_link(text: str | None, url: str | None) -> str:
if text is None or url is None:
return text
return f"[{text}]({url})"