A newer version of the Streamlit SDK is available:
1.51.0
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
- Experiment with how computers βreadβ emotions from text.
- See how simple thresholds (+0.3 / -0.3) decide between happy, sad, or neutral.
- Learn about safe and responsible AI β understanding how a program can detect inappropriate words.
- 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