Spaces:
Build error
Build error
Update app.py
Browse files
app.py
CHANGED
|
@@ -154,10 +154,10 @@ class IntentClassifier:
|
|
| 154 |
|
| 155 |
return 'query', ''
|
| 156 |
|
| 157 |
-
def is_simple_intent(self, intent: str) -> bool:
|
| 158 |
-
|
| 159 |
-
|
| 160 |
-
|
| 161 |
|
| 162 |
# Initialize intent classifier
|
| 163 |
intent_classifier = IntentClassifier()
|
|
|
|
| 154 |
|
| 155 |
return 'query', ''
|
| 156 |
|
| 157 |
+
# def is_simple_intent(self, intent: str) -> bool:
|
| 158 |
+
# """Check if intent can be handled without RAG"""
|
| 159 |
+
# simple_intents = ['greeting', 'thanks']
|
| 160 |
+
# return intent in simple_intents
|
| 161 |
|
| 162 |
# Initialize intent classifier
|
| 163 |
intent_classifier = IntentClassifier()
|