How r-bit-hacker/tweets-depression-detection-app works
This is a small Streamlit app that accepts a tweet and returns a depressed/not-depressed classification. Its runtime flow cleans the submitted text, transforms it with the saved TF-IDF vectorizer, predicts with the saved Logistic Regression model, and displays the result; confidence is attempted when supported. The README also describes the training dataset and deployment, but the notebook was not sampled, so training internals are not mapped. Runtime relationships are supported by app.py.
Main entry points: app.py Streamlit interface · logistic_model.pkl Logistic Regression · tfidf_vectorizer.pkl TF-IDF vectorizer
Components 6
Prediction app
- Streamlit interface
app.py - Text cleaning
app.py - TF-IDF vectorizer
tfidf_vectorizer.pkl - Logistic Regression
logistic_model.pkl - Prediction display
app.py
Other components
- Tweet author
Connections 6
- Tweet author → Streamlit interface: submits tweet
app.py - Streamlit interface → Text cleaning: cleans text
app.py - Streamlit interface → TF-IDF vectorizer: transforms text
app.py - Streamlit interface → Logistic Regression: predicts class
app.py - Streamlit interface → Logistic Regression: gets confidence
app.py - Streamlit interface → Prediction display: displays prediction
app.py