Spaces:
Sleeping
Sleeping
|
Download README.md from EnYa32/StressDetection: direct link, hf CLI and curl.
- Browser
- Download file 1.2 kB
-
https://huggingface.co/spaces/EnYa32/StressDetection/resolve/main/README.md
- Command line
-
hf download hf://spaces/EnYa32/StressDetection/README.md
-
curl -L -o README.md https://huggingface.co/spaces/EnYa32/StressDetection/resolve/main/README.md
1.2 kB
metadata
title: StressDetection
emoji: π§
colorFrom: red
colorTo: red
sdk: docker
app_port: 8501
tags:
- streamlit
pinned: false
short_description: NLP app to detect stress in social media posts.
license: mit
π§ Stress Detection from Text
This project is a simple NLP application that detects stress in social media text.
The app uses a TF-IDF Vectorizer and Logistic Regression to classify text as Stress (1) or No Stress (0).
π Demo
Users can enter a text (for example a social media post), and the model will predict whether the text shows signs of stress.
π§ Model Overview
- Text Preprocessing: TF-IDF Vectorization
- Model: Logistic Regression
- Task: Binary Text Classification
- Labels:
0β No Stress1β Stress
The model achieved an accuracy of about 74% on the test set.
π Files in This Repository
streamlit_app.pyβ Streamlit applicationtfidf_lr_pipeline.pklβ Trained TF-IDF + Logistic Regression pipelinerequirements.txtβ Required Python libraries
βΆοΈ How to Run Locally
pip install -r requirements.txt
streamlit run streamlit_app.py