Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
|
@@ -170,7 +170,7 @@ class SuperSmartAgent:
|
|
| 170 |
def check_wikipedia_suitability(state):
|
| 171 |
q = state["question"].lower()
|
| 172 |
# Simple heuristic: if it's a "who is", "what is", or named entity
|
| 173 |
-
triggers = ["who is", "what is", "when did", "where is", "tell me about", "How many"]
|
| 174 |
state["is_wiki"] = any(trigger in q for trigger in triggers)
|
| 175 |
print(f"is_wiki: {state['is_wiki']}")
|
| 176 |
return state
|
|
|
|
| 170 |
def check_wikipedia_suitability(state):
|
| 171 |
q = state["question"].lower()
|
| 172 |
# Simple heuristic: if it's a "who is", "what is", or named entity
|
| 173 |
+
triggers = ["wikipedia","Wikipedia","who is", "what is", "when did", "where is", "tell me about", "How many"]
|
| 174 |
state["is_wiki"] = any(trigger in q for trigger in triggers)
|
| 175 |
print(f"is_wiki: {state['is_wiki']}")
|
| 176 |
return state
|