Spaces:
Sleeping
Sleeping
🚀 Hugging Face Spaces Deployment - Quick Steps
✅ Select Docker SDK
When creating your Hugging Face Space:
SDK Options: You'll see 3 options
- Gradio ❌ (for Gradio apps)
- Docker ✅ SELECT THIS ONE! (for Streamlit)
- Static ❌ (for static HTML)
Select "Docker" - This will use your Dockerfile automatically
📋 Deployment Steps
Step 1: Create Space
- Go to: https://huggingface.co/spaces
- Click "Create new Space"
- Fill in:
- Space name:
heart-attack-risk-predictor - SDK: Docker ✅
- Visibility: Public
- Hardware: CPU basic (free)
- Space name:
- Click "Create Space"
Step 2: Connect GitHub
- Go to "Settings" tab in your space
- Scroll to "Repository" section
- Select "GitHub"
- Repository:
KBSSRIKARVIT/heart-attack-risk-ensemble - Branch:
main - Click "Save"
Step 3: Wait for Build
- Hugging Face will build your Docker image
- Takes 5-10 minutes (first time)
- Watch progress in "Logs" tab
Step 4: Access Your App
Once built, your app is live at:
https://huggingface.co/spaces/KBSSRIKARVIT/heart-attack-risk-predictor
✅ What's Configured
- ✅ Dockerfile updated for Hugging Face (uses PORT env var)
- ✅ Port 7860 (Hugging Face standard)
- ✅ All model files included
- ✅ Content directory included
- ✅ All dependencies in requirements.txt
🎯 That's It!
Select Docker SDK and deploy! Your Streamlit app will run in the Docker container.
Need help? Check HUGGINGFACE_DEPLOY_DOCKER.md for detailed instructions.