Spaces:
Sleeping
Sleeping
File size: 225 Bytes
3c25c17 | 1 2 3 4 5 6 7 8 9 10 11 12 | import re
def handle_text_input(text: str) -> dict:
cleaned = text.strip()
cleaned = re.sub(r"\s+", " ", cleaned)
return {
"text": cleaned,
"confidence": 1.0,
"input_type": "text",
}
|