Spaces:
Sleeping
Sleeping
| def detect_intent(question: str) -> str: | |
| q = question.lower() | |
| if "appointment" in q or "follow up" in q: | |
| return "appointment" | |
| if "how serious" in q or "severity" in q or "risk" in q: | |
| return "severity" | |
| if "why" in q or "explain" in q: | |
| return "explanation" | |
| return "unknown" | |