Skip to content

junaidaslam2006/AI-Personality

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

🎭 AI Personality Panel

Get instant advice from 5 unique AI personalities! Ask any question and receive diverse perspectives from different AI coaches, each with their own personality and approach.

AI Personality Panel Python Streamlit OpenRouter

🚀 Quick Start

1. Clone the Repository

git clone https://github.com/junaidaslam2006/AI-Personality.git
cd AI-Personality

2. Install Dependencies

pip install -r requirements.txt

3. Set Up Environment

Create a .env file in the project root:

OPENROUTER_API_KEY=your_openrouter_api_key_here

4. Run the App

streamlit run app.py

5. Open Your Browser

Navigate to http://localhost:8501

🎭 Meet the AI Personalities

Personality Emoji Style Best For
Angry Coach 🔥 Direct, tough-love, no excuses When you need brutal honesty and accountability
Philosopher 🤔 Deep, contemplative wisdom When you need perspective and meaning
Comedian 😄 Humorous, light-hearted When you're stressed and need to lighten up
Motivator 💪 Positive, encouraging, uplifting When you need inspiration and confidence
Practical 📋 Action-oriented, step-by-step solutions When you need concrete actionable advice

💡 How It Works

  1. Type your question in the input box
  2. Click "Get Answers" button
  3. Get 5 unique responses (30-50 words each) from different AI personalities
  4. Compare perspectives and choose what resonates with you

🎯 Perfect Questions to Ask

  • "I failed my exam, what should I do?"
  • "I'm feeling overwhelmed at work"
  • "Should I quit my job to pursue my dreams?"
  • "I want to start a business but I'm scared"
  • "How do I build confidence?"
  • "I'm procrastinating too much"
  • "My relationship is struggling"
  • "I don't know what career path to choose"

✨ Features

  • 🎭 5 Distinct Personalities - Each with unique coaching styles
  • Quick Responses - Concise 30-50 word answers
  • 🎨 Beautiful UI - Clean Streamlit interface with custom styling
  • 🔐 Secure - API keys protected with environment variables
  • 🌐 Powered by DeepSeek - Advanced AI model via OpenRouter

🛠️ Tech Stack

  • Frontend: Streamlit
  • AI Model: DeepSeek Chat via OpenRouter API
  • Backend: Python with OpenAI client
  • Environment: python-dotenv for secure key management
  • Language: Python 3.10+

📁 Project Structure

PersonalityPanel/
├── app.py                    # Main Streamlit application
├── agents/
│   └── personality_agents.py # AI personality classes and logic
├── config/
│   ├── settings.py          # Application configuration
│   └── langchain_config.py  # Configuration files
├── assets/
│   └── styles.css           # Custom CSS styling
├── requirements.txt         # Python dependencies
├── .env                     # API keys (you create this)
├── .gitignore              # Git ignore rules
└── README.md               # This documentation

🔐 Environment Setup

You'll need an OpenRouter API key to use the AI personalities:

  1. Visit OpenRouter.ai
  2. Create an account and obtain your API key
  3. Create a .env file in the project root directory
  4. Add your API key: OPENROUTER_API_KEY=sk-or-v1-your-key-here

Note: The .env file is ignored by Git to keep your API key secure.

🎨 Screenshots

The app features a clean interface with:

  • Single input box for your questions
  • 5 output columns showing each personality's response
  • Color-coded personality sections
  • Responsive design that works on different screen sizes

🔧 Configuration

  • Response Length: Optimized for 30-50 word responses
  • Model: DeepSeek Chat (fast and accurate)
  • Temperature: 0.8 for creative but consistent responses
  • Max Tokens: 80 per response for concise answers

🤝 Contributing

Want to add a new personality or improve the app?

  1. Fork the repository
  2. Create a feature branch (git checkout -b feature/new-personality)
  3. Make your changes
  4. Commit your changes (git commit -am 'Add new personality')
  5. Push to the branch (git push origin feature/new-personality)
  6. Create a Pull Request

🐛 Troubleshooting

API Key Issues:

  • Ensure your .env file is in the project root
  • Check that your OpenRouter API key is valid
  • Verify you have credits in your OpenRouter account

Import Errors:

  • Run pip install -r requirements.txt
  • Make sure you're using Python 3.10 or higher

Streamlit Issues:

  • Try streamlit run app.py from the project directory
  • Clear Streamlit cache: streamlit cache clear

📄 License

This project is open source and available under the MIT License.

🌟 Show Your Support

Give a ⭐️ if this project helped you get multiple perspectives on your problems!

📞 Contact


Built with ❤️ using Streamlit and OpenRouter API

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors