metadata
title: Emoji Predictor API
emoji: π
colorFrom: blue
colorTo: purple
sdk: docker
pinned: false
license: mit
π― Emoji Predictor API
Predict the appropriate emoji for any English sentence using LSTM deep learning model.
π API Endpoints
Health Check
GET /
GET /health
Predict Single Text
POST /predict
Content-Type: application/json
{
"text": "I love you"
}
Response:
{
"text": "I love you",
"emoji": "β€οΈ",
"emoji_meaning": "love",
"confidence": 0.95,
"all_predictions": {
"β€οΈ": {"probability": 0.95, "meaning": "love"},
"βΎ": {"probability": 0.01, "meaning": "sports"},
"π": {"probability": 0.02, "meaning": "happy"},
"π": {"probability": 0.01, "meaning": "sad"},
"π΄": {"probability": 0.01, "meaning": "food"}
}
}
Predict Batch
POST /predict/batch
Content-Type: application/json
["I love you", "I am hungry", "Let's play baseball"]
π Supported Emojis
| Emoji | Meaning |
|---|---|
| β€οΈ | Love |
| βΎ | Sports |
| π | Happy |
| π | Sad |
| π΄ | Food |
π§ Technology Stack
- FastAPI
- TensorFlow/Keras
- LSTM Neural Network
- GloVe Word Embeddings