Spaces:
Sleeping
π Get Started with AI Mirror
Welcome to AI Mirror! This guide will help you get up and running quickly.
π What is AI Mirror?
AI Mirror is an AI-powered emotional intelligence platform that:
- π§ Analyzes emotions in your text using advanced NLP
- π Creates beautiful visualizations of your emotional patterns
- π¨ Generates AI artwork representing your mood
- π‘ Provides personalized insights and recommendations
- π Exports comprehensive PDF reports
β‘ Quick Start (5 Minutes)
For Windows Users
Open Two Command Prompts
In First Terminal (Backend):
cd "c:\Users\ZAEEM\Downloads\AI Mirror\CascadeProjects\windsurf-project" start-backend.batIn Second Terminal (Frontend):
cd "c:\Users\ZAEEM\Downloads\AI Mirror\CascadeProjects\windsurf-project" start-frontend.batOpen Browser: http://localhost:5173
For macOS/Linux Users
In First Terminal (Backend):
cd backend python3 -m venv venv source venv/bin/activate pip install -r requirements.txt python download_models.py uvicorn main:app --reloadIn Second Terminal (Frontend):
cd frontend npm install npm run devOpen Browser: http://localhost:5173
π― First Analysis
- Click "Start Analyzing" on the home page
- Enter your name (e.g., "Zayeem")
- Add some text to analyze:
I'm feeling incredibly excited about this new AI project! The possibilities are endless and I can't wait to see what we can create. This technology is truly fascinating and inspiring. - Click "Analyze Emotions"
- Explore the results:
- Emotions Tab: See emotion breakdown
- AI Insights Tab: Read personalized summary
- Visualizations Tab: View interactive charts
- Mood Art Tab: See AI-generated artwork
π Optional: Enable Full Features
For AI-generated art and enhanced insights, add API keys:
Get OpenAI API Key
- Visit https://platform.openai.com/
- Sign up or log in
- Go to API Keys β Create new key
- Copy the key
Get Gemini API Key
- Visit https://makersuite.google.com/app/apikey
- Create API key
- Copy the key
Add Keys to Backend
- Navigate to
backendfolder - Copy
.env.exampleto.env - Edit
.envand add:OPENAI_API_KEY=sk-your-openai-key-here GEMINI_API_KEY=your-gemini-key-here - Restart backend server
Note: App works without keys but with limited features.
π Documentation
- Quick Start:
QUICKSTART.md- Fastest way to run - Setup Guide:
SETUP.md- Detailed installation - Deployment:
DEPLOYMENT.md- Deploy to production - Project Summary:
PROJECT_SUMMARY.md- Complete overview - Contributing:
CONTRIBUTING.md- How to contribute
π¨ Features Overview
1. Emotion Detection
- Detects 7 emotions: joy, sadness, anger, fear, surprise, neutral, disgust
- 95%+ accuracy using BERT models
- Real-time analysis
2. AI Insights
- Personalized emotional summaries
- Pattern recognition
- Actionable recommendations
- Powered by GPT/Gemini
3. Visualizations
- Emotion pie chart
- Intensity bar chart
- Sentiment gauge
- Emotion timeline
- Radar chart
4. Mood Landscape Art
- AI-generated nature landscapes
- Weather/season matching emotions
- High-quality 4K photography style
- Pure nature scenes (no humans/animals)
- Powered by DALL-E
5. PDF Reports
- Comprehensive analysis
- Professional formatting
- Downloadable
- Shareable
π οΈ Tech Stack
Backend: Python, FastAPI, BERT, Transformers, Plotly
Frontend: React, TailwindCSS, Framer Motion
AI: OpenAI GPT, DALL-E, Google Gemini
Deployment: Netlify, Render
π Example Use Cases
Personal Development
Track your emotional patterns over time
Identify triggers and trends
Improve self-awareness
Content Creation
Analyze your writing tone
Optimize messaging for your audience
Ensure emotional consistency
Mental Health
Monitor emotional well-being
Recognize patterns
Share insights with therapist
Research
Sentiment analysis studies
Emotion detection research
NLP model evaluation
π Troubleshooting
Backend won't start
- Check Python version:
python --version(need 3.9+) - Install dependencies:
pip install -r requirements.txt - Check port 8000 is free
Frontend won't start
- Check Node version:
node --version(need 18+) - Install dependencies:
npm install - Clear cache:
npm cache clean --force
Models not downloading
- Check internet connection
- Run manually:
python download_models.py - Wait 5-10 minutes for download
API calls failing
- Verify backend is running: http://localhost:8000/health
- Check CORS settings
- Verify API URL in frontend/.env
π‘ Tips for Best Results
- Text Length: 50-500 words works best
- Multiple Entries: Add 3-5 texts for better insights
- Be Authentic: Write naturally for accurate analysis
- Explore Tabs: Check all result tabs for complete picture
- Download Report: Save your analysis as PDF
π― Next Steps
After getting started:
- β Try different types of text
- β Explore all visualization types
- β Generate and download a report
- β Add API keys for full features
- β Customize the code (it's open source!)
- β Deploy to production (see DEPLOYMENT.md)
- β Share your deployment!
π Need Help?
- Email: zayeem.s.khateeb@gmail.com
- LinkedIn: https://www.linkedin.com/in/zayeemkhateeb
- Issues: Create a GitHub issue
- Docs: Check other .md files in project
π Show Your Support
If you like AI Mirror:
- β Star the repository
- π¦ Share on social media
- π¬ Provide feedback
- π€ Contribute improvements
π You're Ready!
You now have everything you need to start using AI Mirror.
Remember: "Your words reflect more than you think" π
Enjoy exploring your emotions with AI Mirror!
Developer: Sayed Mohd Zayeem Khateeb
Project: AI Mirror - Emotional Intelligence Visualizer
Version: 1.0.0