teamaMohamed115 commited on
Commit
f3d50f7
·
verified ·
1 Parent(s): b4ce389

Create utils.py

Browse files
Files changed (1) hide show
  1. utils.py +6 -0
utils.py ADDED
@@ -0,0 +1,6 @@
 
 
 
 
 
 
 
1
+ # Small helper utilities in case you want to expand the Space
2
+
3
+
4
+ def sanitize_prompt(text: str) -> str:
5
+ """Basic sanitization: remove non-printable chars"""
6
+ return ''.join(ch for ch in text if ch.isprintable())