MCPcopy Create free account
hub / github.com/Gadersd/stable-diffusion-burn / whitespace_clean

Function whitespace_clean

python/dump.py:472–475  ·  view source on GitHub ↗
(text)

Source from the content-addressed store, hash-verified

470 return pairs
471
472def whitespace_clean(text):
473 text = re.sub(r'\s+', ' ', text)
474 text = text.strip()
475 return text
476
477def bytes_to_unicode():
478 """

Callers 1

encodeMethod · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected