Spaces:
Running
Running
File size: 431 Bytes
7fafb5b 98a0172 | 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 |
# INPUT CLASSIFIER - core/input_classifier.py
def is_meaningful_input(text):
text = text.strip().lower()
# very short / trivial
if len(text) < 10:
return False
trivial_phrases = [
"test",
"hello",
"hi",
"sample",
"checking",
"123"
]
if any(word in text for word in trivial_phrases):
return False
return True |