Spaces:
Runtime error
Runtime error
β Your HuggingFace Space is Ready to Deploy!
π― Quick Deploy Commands
Run these commands in order:
# 1. Navigate to deployment directory
cd /Users/mbc/workspace/hackathonspace/iterate-hack-nov-2025/voice-RL-version2/voice-model-rl-training/deployment/huggingface-space
# 2. Initialize git
git init
# 3. Add all files
git add .
# 4. Commit
git commit -m "Initial deployment: Voice Model RL Training"
# 5. Add HuggingFace remote
git remote add space https://huggingface.co/spaces/iteratehack/voice-model-rl-training
# 6. Push to HuggingFace
git push space main --force
π Your Space URL
After deployment, your Space will be live at:
https://huggingface.co/spaces/iteratehack/voice-model-rl-training
βοΈ Space Configuration
The README.md header is already configured:
sdk: gradio
hardware: t4-small # GPU support
python_version: 3.11
license: mit
π° Cost Info
- T4 Small: $0.60/hour (only when running)
- Auto-sleep: 1 hour idle (configured)
- Free tier: Switch to
cpu-basicin settings
π§ͺ Test Locally First (Optional)
# Install Gradio (already installed)
pip install gradio
# Run locally
python app.py
# Visit http://localhost:7860
# Press Ctrl+C to stop
π¦ What's Included
β
Production Gradio app (app.py)
β
All dependencies (requirements.txt)
β
Source code (voice_rl/ directory)
β
GPU auto-detection
β
Error handling
β
Real-time progress tracking
π Features Your Space Has
Training Tab:
- Model selection (Wav2Vec2, WavLM)
- Algorithm choice (PPO, REINFORCE)
- Hyperparameter configuration
- Real-time progress
- Automatic checkpointing
Compare Results Tab:
- Audio upload
- Base vs trained model comparison
- Side-by-side playback
Information Tab:
- Feature overview
- Usage instructions
- Citation info
π After Deployment
Check Build Logs:
- Go to your Space > Logs tab
- Wait for "Running on public URL"
Test Your Space:
- Open the Space URL
- Try training with 5 episodes
- Upload test audio
Configure Hardware (if needed):
- Settings > Hardware > Choose GPU type
- For training: Keep T4 Small
- For demos: Switch to CPU Basic (free)
Set Sleep Time:
- Settings > Sleep time > 1 hour
- Prevents unexpected charges
π§ Quick Customization
Want to change something? Edit these files:
app.py- UI and functionalityrequirements.txt- DependenciesREADME.md- Space documentation
Then push updates:
git add .
git commit -m "Your changes"
git push space main
π Documentation Files
TEST_LOCALLY.md- How to test before deployingDEPLOY_TO_HF.md- Detailed deployment guideDEPLOYMENT_SUMMARY.md- Quick referenceREADY_TO_DEPLOY.md- This file!
π Need Help?
Common Issues:
- Build fails β Check logs
- Import errors β Verify voice_rl/ structure
- GPU not available β Check hardware settings
Resources:
- HuggingFace Docs: https://huggingface.co/docs/hub/spaces
- Gradio Docs: https://www.gradio.app/docs
β¨ You're All Set!
Your deployment directory is ready. Just run the commands above and your Space will be live!
Quick copy-paste:
cd /Users/mbc/workspace/hackathonspace/iterate-hack-nov-2025/voice-RL-version2/voice-model-rl-training/deployment/huggingface-space && git init && git add . && git commit -m "Initial deployment" && git remote add space https://huggingface.co/spaces/iteratehack/voice-model-rl-training && git push space main --force
π Happy Deploying!