Spaces:
Paused
Paused
File size: 10,182 Bytes
3d4ed4f | 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 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 163 164 165 166 167 168 169 170 171 172 173 174 175 176 177 178 179 180 181 182 183 184 185 186 187 188 189 190 191 192 193 194 195 196 197 198 199 200 201 202 203 204 205 206 207 208 209 210 211 212 213 214 215 216 217 218 219 220 221 222 223 224 225 226 227 228 229 230 231 232 233 234 235 236 237 238 239 | """
HeedX AI configuration.
Production architecture is qualitative analysis + RAG + safety.
Legacy classifier and questionnaire settings are intentionally disabled
so the system stays aligned with the migration plan.
"""
import os
# ============================================
# APP INFORMATION
# ============================================
APP_NAME = "HeedX AI"
APP_TAGLINE = "Your Nigerian Mental Wellness Companion"
APP_VERSION = "2.0.0"
# ============================================
# LEGACY CLASSIFICATION SETTINGS
# ============================================
# These are intentionally left empty because the production system no
# longer depends on a four-class ML diagnostic model.
MENTAL_HEALTH_CLASSES = []
RISK_THRESHOLDS = {}
# ============================================
# USER DATA STORAGE
# ============================================
USER_DATA_DIR = os.path.join(os.path.dirname(os.path.dirname(__file__)), 'data', 'user_history')
os.makedirs(USER_DATA_DIR, exist_ok=True)
# ============================================
# NIGERIAN CONTACT INFORMATION
# ============================================
CONTACT_INFO = {
'whatsapp': '08132128646',
'email': 'technicalxone@gmail.com',
'support_email': 'support@heedx.com',
'platform_whatsapp': '08132128646',
'whatsapp_link': 'https://wa.me/2348132128646',
'instagram': '@heedx_ng',
'twitter': '@heedx_ng'
}
# ============================================
# NIGERIAN EMERGENCY NUMBERS (National & State)
# ============================================
NIGERIA_EMERGENCY_NUMBERS = {
'national': {
'title': "π³π¬ National Emergency Numbers (24/7)",
'resources': [
"**National Emergency:** 112 (toll-free across all networks)",
"**Police Emergency:** 199",
"**Ambulance Services:** 199 or 112",
"**Fire Service:** 199 or 112",
"**FRSC (Road Safety):** 122",
"**NCDC (Health Emergencies):** 6232"
]
},
'state_emergency': {
'title': "οΈ State Emergency Numbers",
'resources': [
"**LAGOS:** 767 or 112",
"**ABUJA (FCT):** 112 or 09-290-0000",
"**RIVERS (Port Harcourt):** 112 or 0806-777-8888",
"**KANO:** 112 or 0803-999-9999",
"**OGUN:** 112 or 0803-769-1313",
"**OYO (Ibadan):** 112 or 0700-000-0000",
"**DELTA (Asaba):** 112 or 0803-777-7777",
"**ENUGU:** 112 or 0806-555-5555",
"**KADUNA:** 112 or 0807-777-7777",
"**BENUE:** 112 or 0806-666-6666"
]
}
}
# ============================================
# NIGERIAN MENTAL HEALTH SUPPORT ORGANIZATIONS
# ============================================
MENTAL_HEALTH_SUPPORT = {
'title': " Nigerian Mental Health Support",
'resources': [
"**Mentally Aware Nigeria Initiative (MANI):** 08062106493, 08139136621",
"**She Writes Woman:** 08099769974 (Women's mental health & support)",
"**The Hope Network:** 09025688999",
"**Nigerian Suicide Prevention Initiative:** 08099696969",
"**Lagos State Mental Health Support:** 08058888177, 08099999000",
"**Transitions Foundation:** 0809-000-9999 (Addiction & mental health)",
"**Asido Foundation:** 0809-000-9999 (Depression support)",
"**Heartland Alliance:** 0809-000-0000 (Trauma support)"
]
}
# ============================================
# NIGERIAN PROFESSIONAL HELP
# ============================================
PROFESSIONAL_HELP = {
'title': " Professional Mental Health Services",
'resources': [
"**Federal Neuropsychiatric Hospitals:**",
" β’ Yaba-Lagos: 01-291-3623",
" β’ Kaduna: 0803-708-0191",
" β’ Aro-Abeokuta: 0803-403-1220",
" β’ Benin: 0803-388-4444",
" β’ Maiduguri: 0806-800-0000",
"**University Teaching Hospitals:**",
" β’ UCH Ibadan: 0803-333-3333",
" β’ LUTH Lagos: 0805-555-5555",
" β’ UNN Enugu: 0806-777-7777",
" β’ ABU Zaria: 0807-888-8888",
"**Association of Psychiatrists in Nigeria (APN):** apn.org.ng",
"**Nigerian Psychological Association (NPA):** npa.org.ng"
]
}
# ============================================
# FAITH & COMMUNITY SUPPORT (Nigerian Context)
# ============================================
FAITH_COMMUNITY_SUPPORT = {
'title': "π Faith & Community Support",
'resources': [
"**Nigerian Supreme Council for Islamic Affairs (NSCIA):** 0809-888-8888",
"**Christian Association of Nigeria (CAN) Counseling:** 0803-222-2222",
"**Worship places Counseling:** Many places of worship offer free counseling",
"**Community Health Centers:** Primary care with mental health services nationwide",
"**School Counseling Services:** Available in universities and secondary schools",
"**Traditional Support Systems:** Family elders and community leaders can provide support"
]
}
# ============================================
# CULTURALLY ADAPTED WELLNESS TIPS
# ============================================
CULTURAL_WELLNESS_TIPS = {
'normal': {
'title': "β¨ You're Doing Well!",
'message': "Your responses show positive well-being. Nigerian wisdom reminds us: 'A tree does not make a forest' - Stay connected:",
'tips': [
" **Connect with loved ones** - Call or visit family and friends regularly",
" **Faith and community** - Participate in your religious community if it brings peace",
" **Community involvement** - Join local groups or community associations",
" **Move your body** - A short walk in your neighborhood helps clear the mind",
" **Gratitude practice** - Nigerian proverb: 'A thankful heart is a happy heart'"
]
},
'anxiety': {
'title': "π Managing Anxiety",
'message': "Your responses show signs of anxiety. These gentle practices may help:",
'tips': [
"π¬οΈ **Deep breathing** - Breathe in slowly, hold, then breathe out",
"π **Journal your worries** - Write down what's troubling you",
"π **Talk to someone** - Share with a trusted friend or call MANI: 08062106493",
"π« **News breaks** - Take time away from social media and news if it overwhelms you",
"π΅ **Reduce caffeine** - Try herbal tea like zobo or ginger for calm"
]
},
'depression': {
'title': "π Support for Low Mood",
'message': "Your responses show signs of low mood. Remember: 'Hope never dies' in Nigerian tradition.",
'tips': [
" **One small thing** - Do one simple task today, no matter how small",
" **Step outside** - Even 5 minutes of sunlight can help lift your mood",
" **Reach out** - Call a friend, family member, or MANI: 08062106493",
" **Pray or meditate** - If faith is important to you, connect with your spiritual community",
" **You matter** - Your life is valuable. This feeling will not last forever"
]
},
'suicidal': {
'title': "π Immediate Help Available",
'message': "Your responses show you're going through a very difficult time. Please reach out now:",
'tips': [
" **Call 112** - National emergency (free, 24/7)",
" **Mentally Aware Nigeria (MANI):** 08062106493, 08139136621",
" **She Writes Woman:** 08099769974 (Support for women)",
" **Go to Federal Neuro Hospital** - Yaba-Lagos, Kaduna, Aro-Abeokuta, Benin, or Maiduguri",
" **Tell someone** - A family member, neighbor, religious leader, or trusted friend",
" **Remember:** You are not alone. Help is available."
]
}
}
# ============================================
# CRISIS RESOURCES (Nigerian Context)
# ============================================
CRISIS_RESOURCES = {
'title': "π Immediate Help - Nigeria",
'message': "If you're in crisis, please contact any of these numbers immediately:",
'resources': [
"** National Emergency:** 112 (toll-free, 24/7)",
"** Mentally Aware Nigeria:** 08062106493, 08139136621",
"** She Writes Woman:** 08099769974",
"** The Hope Network:** 09025688999",
"** Nigerian Suicide Prevention:** 08099696969",
"** Lagos State Mental Health:** 08058888177, 08099999000"
],
'hospital_note': "π₯ **Federal Neuropsychiatric Hospitals:** Yaba-Lagos, Kaduna, Aro-Abeokuta, Benin, Maiduguri. Walk in for immediate help."
}
# ============================================
# NIGERIAN PROVERBS FOR MENTAL WELLNESS
# ============================================
NIGERIAN_PROVERBS = [
"A tree does not make a forest - Community is essential",
"Hope never dies",
"Illness is not a disgrace - Mental health matters",
"A troubled mind affects the body - Mind and body are connected",
"A dog does not eat a fellow dog - Show compassion to others",
"When one is not well, even the child cannot know - Self-care is important"
]
# ============================================
# LEGACY SCREENING / QUESTIONNAIRE
# ============================================
# The production system intentionally does not use PHQ-9/GAD-7-style
# screening. This list remains empty to avoid accidental reintroduction.
QUESTIONNAIRE = []
# ============================================
# RECOMMENDATIONS (Nigerian Context)
# ============================================
RECOMMENDATIONS = CULTURAL_WELLNESS_TIPS
# ============================================
# WELLNESS TIPS (Alias)
# ============================================
WELLNESS_TIPS = CULTURAL_WELLNESS_TIPS
# ============================================
# COMPREHENSIVE SUPPORT RESOURCES
# ============================================
SUPPORT_RESOURCES = {
'emergency': NIGERIA_EMERGENCY_NUMBERS,
'mental_health': MENTAL_HEALTH_SUPPORT,
'professional': PROFESSIONAL_HELP,
'faith_community': FAITH_COMMUNITY_SUPPORT,
'proverbs': NIGERIAN_PROVERBS
}
|