How hsai-rohit/h-sairohit-mood2emoji works
This is a small Streamlit teaching app: a learner enters a sentence, the app checks it against a child-safety word list, then uses TextBlob sentiment polarity and falls back to word counting when the result is neutral. The app displays a mood emoji and feedback; its Teacher Mode describes that flow. Styling and result rendering are internal UI responsibilities. The map is based on the README and the excerpted app.py; no separate subsystems or storage are shown.
Main entry points: app.py Streamlit app
Components 8
App interface
- Streamlit app
app.py - Sentence input
app.py - Mood feedback
app.py - Teacher Mode
app.py
Text analysis
- Safety filter
app.py - TextBlob analysis
app.py - Rule fallback
app.py
Other components
- Learner
Connections 7
- Learner → Sentence input: enters sentence
app.py - Sentence input → Streamlit app: submits input
app.py - Streamlit app → Safety filter: checks safety
app.py - Streamlit app → TextBlob analysis: analyzes text
app.py - Streamlit app → Rule fallback: uses if neutral
app.py - Streamlit app → Mood feedback: shows feedback
app.py - Streamlit app → Teacher Mode: displays explanation
app.py