Spaces:
Sleeping
Sleeping
File size: 1,166 Bytes
0f43e0e |
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 |
# π― 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.
|