MCPcopy Create free account
hub / github.com/YesianRohn/TextSSR / _center_text

Function _center_text

diffusers/utils/check_table.py:81–85  ·  view source on GitHub ↗
(text, width)

Source from the content-addressed store, hash-verified

79
80
81def _center_text(text, width):
82 text_length = 2 if text == "✅" or text == "❌" else len(text)
83 left_indent = (width - text_length) // 2
84 right_indent = width - text_length - left_indent
85 return " " * left_indent + text + " " * right_indent
86
87
88def get_model_table_from_auto_modules():

Callers 1

Calls

no outgoing calls

Tested by

no test coverage detected