CoolFace
Apppublic

Saniya1331/hinglish-analyzer

sourceHugging Faceupdated 4mo agoView on Hugging Face
0likes
App README

Hinglish Sentiment Analyzer

Analyze sentiment of code-mixed Hindi-English (Hinglish) text in real-time.

API Endpoints

  • GET /health - Health check
  • POST /analyze - Analyze single text
  • POST /analyze-batch - Analyze multiple texts

Example

bash
curl -X POST https://your-space.hf.space/analyze \
  -H "Content-Type: application/json" \
  -d '{"text": "Yeh product bahut badhiya hai!"}'
Response:

json
{
  "text": "Yeh product bahut badhiya hai!",
  "sentiment": "POSITIVE",
  "confidence": 0.98,
  "emoji": "😊"
}
text

### Step 2: Create Space on Hugging Face

1. Go to [huggingface.co/new-space](https://huggingface.co/new-space)
2. Fill in:
   - **Space Name**: `hinglish-sentiment-analyzer` (or your choice)
   - **License**: MIT
   - **SDK**: Select **Docker** (important!) [citation:5]
   - **Space Hardware**: CPU Basic (FREE tier works!)
3. Click "Create Space" [citation:8]

### Step 3: Push Your Code

Open terminal in your project folder:

Initialize git (if not already done)

git init git checkout -B main

Add the Hugging Face remote

git remote add space https://huggingface.co/spaces/Saniya1331/hinglish-analyzer

Add all files

git add . git commit -m "Initial deployment of Hinglish Sentiment Analyzer"

Push to Hugging Face

git push space main