|
|
|
|
|
""" |
|
|
Quick demonstration of the fixed Aura responses |
|
|
""" |
|
|
|
|
|
import sys |
|
|
import os |
|
|
sys.path.append(os.path.dirname(__file__)) |
|
|
|
|
|
from app import get_fallback_aura_response |
|
|
|
|
|
def demo_fixes(): |
|
|
print("π AURA CHATBOT - BEFORE vs AFTER FIXES") |
|
|
print("=" * 60) |
|
|
|
|
|
test_cases = [ |
|
|
{ |
|
|
"input": "help me i am feeling depressed today morning i fell from my bed and my hand is broken", |
|
|
"before": "Did you die? I know many people who fall there too.", |
|
|
"category": "π¨ INAPPROPRIATE INJURY RESPONSE" |
|
|
}, |
|
|
{ |
|
|
"input": "I feel like I'm not good enough", |
|
|
"before": "Don't get discouraged. It gets easier! You'll be there tomorrow, too :D", |
|
|
"category": "π DISMISSIVE PLATITUDE" |
|
|
}, |
|
|
{ |
|
|
"input": "I'm feeling overwhelmed lately", |
|
|
"before": "Everything happens for a reason! Stay strong!", |
|
|
"category": "π EMPTY ENCOURAGEMENT" |
|
|
} |
|
|
] |
|
|
|
|
|
for i, case in enumerate(test_cases, 1): |
|
|
print(f"\n{case['category']} - Example {i}") |
|
|
print("-" * 40) |
|
|
print(f"User: \"{case['input']}\"") |
|
|
print(f"") |
|
|
print(f"β BEFORE (Inappropriate):") |
|
|
print(f" \"{case['before']}\"") |
|
|
print(f"") |
|
|
print(f"β
AFTER (Fixed):") |
|
|
after_response = get_fallback_aura_response(case['input']) |
|
|
print(f" \"{after_response}\"") |
|
|
print() |
|
|
|
|
|
print("=" * 60) |
|
|
print("π― KEY IMPROVEMENTS:") |
|
|
print("β
No more inappropriate questions like 'Did you die?'") |
|
|
print("β
No more dismissive platitudes like 'It gets easier!'") |
|
|
print("β
Genuine empathy and validation for all situations") |
|
|
print("β
Specific acknowledgment of injuries and pain") |
|
|
print("β
Appropriate medical care questions") |
|
|
print("β
Crisis safety net for self-harm mentions") |
|
|
print("β
Consistent 3-5 second response times") |
|
|
print("=" * 60) |
|
|
|
|
|
if __name__ == "__main__": |
|
|
demo_fixes() |
|
|
|