Spaces:
Runtime error
Runtime error
File size: 209 Bytes
f3d50f7 | 1 2 3 4 5 6 | # Small helper utilities in case you want to expand the Space
def sanitize_prompt(text: str) -> str:
"""Basic sanitization: remove non-printable chars"""
return ''.join(ch for ch in text if ch.isprintable()) |