Spaces:
Sleeping
Sleeping
Download src/display/formatting.py from Upgini/mle-bench-tabular: direct link, hf CLI and curl.
- Browser
- Download file 497 Bytes
-
https://huggingface.co/spaces/Upgini/mle-bench-tabular/resolve/main/src/display/formatting.py
- Command line
-
hf download hf://spaces/Upgini/mle-bench-tabular/src/display/formatting.py
-
curl -L -o formatting.py https://huggingface.co/spaces/Upgini/mle-bench-tabular/resolve/main/src/display/formatting.py
497 Bytes
| 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})" | |