| title | AI Hair Studio Gemini |
|---|---|
| emoji | 🎨 |
| colorFrom | pink |
| colorTo | purple |
| sdk | gradio |
| sdk_version | 5.35.0 |
| app_file | app.py |
| pinned | false |
| short_description | AI Hair Stylist powered by Gemini 2.0 Flash |
| license | mit |
Professional hair transformation and evaluation system powered by Gemini 2.0 Flash
- 🎯 Face Preservation: Doesn't distort your original photo, only transforms your hair
- 🎨 Tonal Analysis: Skin tone-compatible color selection
- 📱 HD Quality: High resolution photo processing
- 🤖 Dual AI: Hair transformation + suitability evaluation
- 💬 Chat Interface: Easy to use with natural language
- 🌍 Multi-language: Full English & Turkish support
- Get API Key: Get your free API key from Google AI Studio
- Start System: Enter your API key and click "Start System"
- Upload Photo: Upload a clear photo of yourself
- Write Request: Type your hair change request in chat
- See Result: Your new hair style appears automatically and AI analyzes it
English:
- "Honey blonde hair color"
- "Natural brown long hair"
- "Modern short bob cut"
- "Chocolate tone medium hair"
- "Golden blonde wavy hair"
Turkish:
- "Bal sarısı saç rengi"
- "Doğal kahverengi uzun saç"
- "Modern kısa bob kesimi"
- "Çikolata tonunda orta boy saç"
- "Altın sarısı dalgalı saç"
- 🇺🇸 English: Full interface and AI responses in English
- 🇹🇷 Turkish: Full interface and AI responses in Turkish
- 🔄 Switch: Easy language switching with buttons
- AI Model: Google Gemini 2.0 Flash Experimental
- Image Generation: Native multimodal generation
- Interface: Gradio 4.0+
- Platform: Hugging Face Spaces
google-genai>=1.0.0
gradio>=4.0.0
pillow>=9.0.0
numpy>=1.21.0
This app uses Google Gemini API. You can get your own API key from ai.google.dev. Your API key is stored securely and used only for AI processing.
- Run the Spaces
- Choose your language (🇺🇸 English / 🇹🇷 Turkish)
- Enter your API key
- Upload your photo
- Type "How would blonde hair look on me?"
- See the result! 🎨
- ✅ Ultra-precise editing: Only hair area is modified
- ✅ Natural results: AI analyzes skin tone for best color match
- ✅ Professional evaluation: Detailed analysis of suitability
- ✅ High quality: HD resolution preservation
- ✅ User-friendly: Simple chat interface
- ✅ Multi-language: Works in English and Turkish
- Create a new Space on Hugging Face
- Select "Gradio" as the SDK
- Upload all files:
app.pyrequirements.txtREADME.md
- Space will automatically deploy on port 7860
git clone <repository>
cd ai-hair-stylist
pip install -r requirements.txt
python app.pyPort Management:
- 🏠 Local: Automatically finds available port
- 🌐 Spaces: Uses standard port 7860
- 🔄 Auto-detection: No port conflicts
- 📱 Auto-browser: Opens automatically when local
The app automatically detects if it's running on:
- Hugging Face Spaces: Uses optimized settings
- Local Environment: Enables sharing and browser auto-open
- Language Issues: Use the language toggle buttons
- API Errors: Check your Gemini API key
- Photo Issues: Use clear, front-facing photos
- Quality Issues: Specify exact color tones in requests
🎯 Made with ❤️ using Gemini 2.0 Flash
Transform your look with AI-powered precision!