File size: 2,544 Bytes
79f464f
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
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
#!/usr/bin/env python3
"""
Example Usage - Brello EI 0
Created by Epic Systems | Engineered by Rehan Temkar

Demonstrates how to use Brello EI 0 for emotionally intelligent conversations.
"""

from brello_ei_0 import BrelloEI0, load_brello_ei_0

def main():
    """Example usage of Brello EI 0"""
    
    print("πŸ€– Brello EI 0 - Emotional Intelligence AI")
    print("Created by Epic Systems | Engineered by Rehan Temkar")
    print("=" * 50)
    
    # Initialize the model
    print("πŸ“₯ Loading Brello EI 0 model...")
    
    try:
        # Load the model with standard loading
        model = BrelloEI0(
            model_path="microsoft/DialoGPT-medium",
            load_in_4bit=False
        )
        
        print("βœ… Model loaded successfully!")
        
        # Example conversations demonstrating emotional intelligence
        conversations = [
            "I'm feeling really anxious about my presentation tomorrow.",
            "I just got some great news and I'm so excited!",
            "I'm feeling overwhelmed with all my work lately.",
            "I'm really grateful for my friends and family.",
            "I'm not sure what I want to do with my career."
        ]
        
        print("\nπŸ’¬ Example Emotional Intelligence Responses:")
        print("-" * 50)
        
        for i, message in enumerate(conversations, 1):
            print(f"\n{i}. User: {message}")
            response = model.generate_response(message)
            print(f"Brello EI 0: {response}")
            print("-" * 30)
        
        # Interactive chat
        print("\nπŸ’­ Interactive Chat Mode")
        print("Type 'quit' to exit")
        print("-" * 30)
        
        while True:
            user_input = input("\nYou: ").strip()
            
            if user_input.lower() in ['quit', 'exit', 'bye']:
                print("Brello EI 0: It's been wonderful talking with you! Take care and remember that your feelings matter. πŸ’™")
                break
            
            if user_input:
                response = model.chat(user_input)
                print(f"Brello EI 0: {response}")
        
    except Exception as e:
        print(f"❌ Error loading model: {e}")
        print("πŸ’‘ Make sure you have the required dependencies installed:")
        print("pip install -r requirements.txt")
        print("\nπŸ’‘ You may need to accept the model license on Hugging Face:")
        print("Visit: https://huggingface.co/meta-llama/Meta-Llama-3.2-3B-Instruct")

if __name__ == "__main__":
    main()