Keyurjotaniya007's picture
Update README.md
1c6dd68 verified
---
title: TextBlobSentimentAnalysis
emoji: πŸ“ˆ
colorFrom: yellow
colorTo: purple
sdk: streamlit
app_file: app.py
pinned: false
license: apache-2.0
short_description: 'Kid safe Text Mood Detector '
---
Check out the configuration reference at https://huggingface.co/docs/hub/spaces-config-reference
# Keyur-Jotaniya-mood2emoji
Kid-safe Text-Mood Detector (Streamlit + TextBlob or rule-based)
# Kid-safe Text-Mood Detector
A simple Streamlit + TextBlob app for kids
## What this project does
This web app takes a text and predicts the **mood** behind it using **TextBlob sentiment analysis**.
| Mood | Emoji | Example Output |
---------------------------------
| Happy | πŸ˜€ | "Happy" |
| Neutral | 😐 | "Neutral" |
| Sad | 😞 | "Sad" |
| Inappropriate | ⚠️ | "Inappropriate words" |
| Empty Input | πŸ₯± | "Empty text β€” Please write something to analyze" |
This app helps kids safely understand and have fun with Natural Language Processing (NLP).
## How kids learn from it
1. Experiment with how computers β€œread” emotions from text.
2. See how simple **thresholds** (+0.3 / -0.3) decide between *happy, sad, or neutral*.
3. Learn about **safe and responsible AI** β€” understanding how a program can detect inappropriate words.
4. Try changing the **sensitivity** (Strict / Balanced / Sensitive) to see how it affects the results.
This hands-on activity helps them connect basic coding logic (`if`, `elif`, `else`) with real-world AI behavior.
## Tech Used
- **Python 3.9+**
- **Streamlit** for the interactive web app
- **TextBlob** for simple sentiment polarity detection