Spaces:
Runtime error
Runtime error
Linly-X-Gemini - Deployment Guide
π Quick Deploy
Repository Name: Linly-X-Gemini
GitHub Deployment
cd "d:/linly gg/Linly-Talker"
# Initialize git (if not already)
git init
git add .
git commit -m "feat: Linly-X-Gemini - Real-time AI Avatar with Gemini Live
- 8 applications with Gemini Live integration
- MuseTalk streaming engine (<1s latency)
- Railway WebSocket bridge
- Complete documentation"
# Push to GitHub
git remote add origin https://github.com/YOUR_USERNAME/linly-x-gemini.git
git branch -M main
git push -u origin main
Hugging Face Spaces Deployment
Step 1: Create Space
- Go to https://huggingface.co/spaces
- Click "Create new Space"
- Settings:
- Name:
linly-x-gemini - SDK: Gradio
- SDK Version: 4.44.0
- Hardware: GPU (T4 or better)
- Persistent Storage: Enable (for model caching)
- Name:
Step 2: Push Code
# Add Hugging Face remote
git remote add hf https://huggingface.co/spaces/YOUR_USERNAME/linly-x-gemini
# Push to Hugging Face
git push hf main
Step 3: Configure Space
The README.md file contains the Hugging Face configuration:
title: Linly-X-Gemini
emoji: π
sdk: gradio
sdk_version: 4.44.0
app_file: webui.py
π Pre-Deployment Checklist
- β Repository renamed to Linly-X-Gemini
- β No API keys in code
- β All endpoints use Railway bridge
- β configs.py import is optional
- β Paths are correct (Musetalk/)
- β .gitignore excludes models
- β Documentation complete
π― What Gets Deployed
Main App: webui.py
- Clean Gemini Live interface
- Default + custom avatars
- Real-time streaming
Additional Apps (optional):
app.py- Unified (Gemini + Legacy)app_img.py- Talking photosapp_multi.py- Multi-turn conversationapp_talk.py- Avatar comparison labapp_musetalk.py- Debug toolapp_gemini_live.py- Standalone demoapp_vits.py- Voice cloning
βοΈ Environment Requirements
Hugging Face Spaces:
- GPU: T4 minimum (8GB VRAM)
- Storage: 10GB+ for models
- Python: 3.10+
Models (auto-downloaded on first run):
- MuseTalk checkpoints (~2GB)
- Face alignment models
- Whisper ASR (optional)
π§ Post-Deployment
Test Checklist:
- β Space builds successfully
- β Models download correctly
- β Avatar preparation works
- β WebSocket connects to Railway
- β Real-time streaming works
- β Audio playback functions
- β Frame rate ~25 FPS
Expected Performance:
- Latency: <1 second
- FPS: 20-25
- VRAM: 6-8GB
- Connection: 99%+ uptime
π You're Ready!
Repository: Linly-X-Gemini
Status: Production Ready
Deploy: GitHub + Hugging Face Spaces
π Let's go!