Spaces:
Running
Running
π Quick Deployment Summary
β Files Created/Updated for Hugging Face Deployment
.huggingface.yaml
- Hugging Face Spaces configurationDockerfile
- Optimized for HF Spaces with CPU-only PyTorchrequirements-hf.txt
- Lightweight dependencies for deploymentapp/main.py
- Added health checks and root endpoints.github/workflows/deploy-hf.yml
- GitHub Actions workflowdeploy-to-hf.bat
- Windows deployment helper scriptHUGGINGFACE_DEPLOYMENT.md
- Complete deployment guide
π― Quick Deployment Steps
1. Push to GitHub
git add .
git commit -m "Deploy to Hugging Face Spaces"
git push origin main
2. Create Hugging Face Space
- Go to huggingface.co/spaces
- Click "Create new Space"
- Settings:
- SDK: Docker
- License: MIT
- Connect to your GitHub repo
3. Set Environment Variables
In your Space settings, add:
GROQ_API_KEY=your_groq_api_key
DATABASE_URL=sqlite+aiosqlite:///./dubsway_hf.db
SECRET_KEY=your_secret_key
ENVIRONMENT=production
4. Deploy
- Hugging Face will automatically build and deploy
- Monitor build logs in your Space
- Your API will be available at:
https://your-username-dubsway-video-ai.hf.space/
π Test Your Deployment
- Health Check:
GET /health
- API Docs:
GET /docs
- Root Endpoint:
GET /
π Need Help?
- Run
deploy-to-hf.bat
for step-by-step guidance - Check
HUGGINGFACE_DEPLOYMENT.md
for detailed instructions - Monitor build logs in your Hugging Face Space
Your Dubsway Video AI is ready for deployment! π