File size: 1,620 Bytes
d0ab8dd 2fbe2b9 d0ab8dd 2fbe2b9 |
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 |
---
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 |