Spaces:
Sleeping
Sleeping
π Explainor
Learn anything through the voice of your favorite characters!
Tags: mcp-in-action-track-creative
π What is Explainor?
Explainor is an AI agent that takes any topic you want to learn about and explains it through the voice of fun characters! Choose from 6 unique personas:
| Persona | Style |
|---|---|
| πΆ 5-Year-Old | Simple words, excited, curious questions |
| π¨βπ³ Gordon Ramsay | Intense, food metaphors, "It's RAW!" |
| π΄ββ οΈ Pirate | "Arrr!", treasure metaphors, swashbuckling |
| π Shakespeare | Dramatic, old English, theatrical |
| π Surfer Dude | "Brooo", chill vibes, wave metaphors |
| π§ Yoda | Inverted syntax, wise, Force references |
π¬ Demo
[Demo Video Placeholder]
π οΈ How It Works
- Enter a topic - Anything from "Quantum Computing" to "How do volcanoes work?"
- Choose a persona - Pick your favorite character
- Watch the magic - The AI agent:
- π Researches your topic using web search
- π§ Shows its reasoning process
- βοΈ Transforms the explanation into the character's voice
- π Reads it aloud with a matching voice!
π Tech Stack
- LLM: Nebius AI - Llama 3.3 70B for intelligent explanations
- TTS: ElevenLabs - Realistic voice synthesis with character-matched voices
- Web Search: DuckDuckGo API for topic research
- Frontend: Gradio - Beautiful, responsive UI
- Deployment: Modal - Serverless infrastructure
π» Local Development
Prerequisites
- Python 3.11+
- Nebius API key
- ElevenLabs API key
Setup
# Clone the repository
git clone https://huggingface.co/spaces/MCP-1st-Birthday/explainor
# Install dependencies
pip install -r requirements.txt
# Set up environment variables
cp .env.example .env
# Edit .env with your API keys
# Run locally
python app.py
Environment Variables
NEBIUS_API_KEY=your_nebius_api_key_here
ELEVENLABS_API_KEY=your_elevenlabs_api_key_here
π Deployment
Modal Deployment
# Set up Modal secrets
modal secret create nebius-api-key NEBIUS_API_KEY=your_key
modal secret create elevenlabs-api-key ELEVENLABS_API_KEY=your_key
# Deploy
modal deploy modal_app.py
Hugging Face Spaces
This app is designed to run on Hugging Face Spaces with the Gradio SDK.
π Project Structure
explainor/
βββ app.py # Main Gradio application
βββ modal_app.py # Modal deployment config
βββ requirements.txt # Python dependencies
βββ src/
β βββ __init__.py
β βββ personas.py # Persona definitions & voice mappings
β βββ agent.py # Agent logic & web search
β βββ tts.py # ElevenLabs integration
βββ README.md
π Hackathon Submission
- Event: MCP's 1st Birthday Hackathon
- Track: MCP in Action (Track 2)
- Category: Creative
- Team: kaiser-data
- Sponsor Integration: ElevenLabs for text-to-speech
π License
MIT License - Feel free to use and modify!
Made with β€οΈ for MCP's 1st Birthday Hackathon