sentiment-analysis-api / START_HERE.md
nomandiu9's picture
Initial commit: Sentiment analysis app (models on HuggingFace)
0f43e0e
# 🎯 Quick Deploy - 3 Simple Steps
## βœ… Your Setup
- Models: `anis80/anisproject` on HuggingFace βœ…
- Backend: Ready to deploy (downloads models automatically)
- Frontend: Ready for Vercel
---
## πŸš€ Deploy in 3 Steps
### Step 1: Push to GitHub (2 min)
```powershell
cd e:\anis
git remote add origin https://github.com/YOUR_USERNAME/sentiment-backend.git
git branch -M main
git push -u origin main
```
### Step 2: Deploy Backend (3 min)
**Option A - Render (Recommended):**
1. https://render.com β†’ Sign up with GitHub
2. New Web Service β†’ Select your repo
3. Start: `uvicorn app:app --host 0.0.0.0 --port $PORT`
4. Plan: Free β†’ Deploy
**Option B - HuggingFace:**
```powershell
git remote add hf https://huggingface.co/spaces/anis80/sentiment-api
git push hf main
```
### Step 3: Deploy Frontend (2 min)
1. Update `index.html` lines 72-73 with your backend URL
2. Push to GitHub
3. https://vercel.com β†’ Import repo β†’ Deploy
---
## βœ… Test
- Backend: `https://YOUR_URL/docs`
- Frontend: Enter text β†’ Click Analyze β†’ See result!
---
**Total Time: ~7 minutes | Cost: $0/month** πŸŽ‰
See `final_deployment.md` for detailed instructions.