Spaces:
Sleeping
Sleeping
A newer version of the Gradio SDK is available:
6.5.1
Modal YouTube Proxy Setup Instructions
1. Install Modal CLI
pip install modal
2. Login to Modal
modal login
3. Create YouTube API Key (Optional)
Go to https://console.developers.google.com/
Create project, enable YouTube Data API v3
Create API key and add to Modal secrets:
modal secret create youtube-api-key YOUTUBE_API_KEY=your_key_here
4. Deploy the proxy
modal deploy modal_proxy.py
5. Get the URL
After deployment, Modal will show the URL like:
https://your-modal-app.modal.run
6. Update music_server.py
Replace 'your-modal-app.modal.run' with your actual Modal URL
7. Push to HF Spaces
git add . git commit -m 'Add Modal proxy support' git push hf main --force
Testing
curl 'https://your-modal-app.modal.run/youtube-search?query=drake&limit=3'