Matt300209's picture
Upload folder using huggingface_hub
9823a7e verified
raw
history blame contribute delete
284 Bytes
import textwrap
HEADER_WIDTH = 60
def print_header(txt: str, width: int = HEADER_WIDTH, filler: str = "+") -> None:
txt = f" {txt} " if txt else ""
print(txt.center(width, filler))
def print_dedented(text):
print("\n".join(textwrap.dedent(text).strip().split("\n")))