Spaces:
Sleeping
Sleeping
Deployment Options
π― Recommended: Hugging Face Spaces (FREE)
Perfect for ML apps! No size limits, designed for transformers.
Steps:
Create Account: https://huggingface.co/join
Create New Space:
- Go to: https://huggingface.co/new-space
- Name:
nlp-analysis-api - License: MIT
- SDK: Docker
- Hardware: CPU (free)
Upload Files:
- Clone the HF Space repo locally
- Copy all files from
backend/nlp-backend/to the Space - Add Dockerfile (already created)
- Push to HF Space
Get Live URL:
https://huggingface.co/spaces/YourUsername/nlp-analysis-api
Benefits:
- β FREE forever
- β No size limits
- β ML-optimized infrastructure
- β Great for portfolio
Option 2: Render.com (FREE with limitations)
Pros:
- β Free tier available
- β Auto-deploys from GitHub
- β No image size limit
Cons:
- β οΈ 512 MB RAM (may need to optimize)
- β οΈ Sleeps after 15 min inactivity
Steps:
- Go to: https://render.com
- Create account
- New β Web Service
- Connect GitHub repo
- Root Directory:
backend/nlp-backend - Build Command:
pip install -r requirements.txt - Start Command:
uvicorn main:app --host 0.0.0.0 --port $PORT - Select Free tier
- Deploy!
Option 3: Fly.io (FREE tier)
Pros:
- β Generous free tier
- β Good for Docker apps
- β Fast deployments
Steps:
- Install flyctl: https://fly.io/docs/hands-on/install-flyctl/
- Login:
flyctl auth login - In
backend/nlp-backend/:flyctl launch - Follow prompts
- Deploy:
flyctl deploy
Option 4: Railway.app (PAID - $5/month)
Only if you want to pay:
- Hobby plan: $5/month
- Removes image size limit
- Better for production
π― Recommendation
Use Hugging Face Spaces - it's free, unlimited, and perfect for ML apps!
The community loves seeing ML projects on HF Spaces, and it's great for your portfolio.