Spaces:
Sleeping
Sleeping
Update README.md
Browse files
README.md
CHANGED
|
@@ -1,41 +1,71 @@
|
|
| 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 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
---
|
| 2 |
+
license: mit
|
| 3 |
+
title: Social Aegis
|
| 4 |
+
sdk: gradio
|
| 5 |
+
emoji: ⚡
|
| 6 |
+
colorFrom: blue
|
| 7 |
+
colorTo: yellow
|
| 8 |
+
pinned: true
|
| 9 |
+
---
|
| 10 |
+
# SocialAegis MVP
|
| 11 |
+
|
| 12 |
+
🛡️ A sentiment-based escalation engine to detect emotional volatility in social media posts.
|
| 13 |
+
|
| 14 |
+
---
|
| 15 |
+
|
| 16 |
+
## Overview
|
| 17 |
+
|
| 18 |
+
SocialAegis is designed to analyze text from social media and other sources to detect sentiment, calculate a risk score, and determine whether escalation is needed. This helps organizations monitor emotional volatility in communications and take timely action.
|
| 19 |
+
|
| 20 |
+
---
|
| 21 |
+
|
| 22 |
+
## Features
|
| 23 |
+
|
| 24 |
+
- **Sentiment Analysis** – Classifies input text as Positive, Neutral, or Negative.
|
| 25 |
+
- **Risk Scoring** – Provides a numerical score indicating the emotional intensity or risk level.
|
| 26 |
+
- **Escalation Trigger** – Indicates whether the text requires escalation based on the risk score.
|
| 27 |
+
- **Supports All Text Inputs** – Works with short posts, long messages, and multiple languages.
|
| 28 |
+
|
| 29 |
+
---
|
| 30 |
+
|
| 31 |
+
## How to Use
|
| 32 |
+
|
| 33 |
+
1. Enter your text into the input box.
|
| 34 |
+
2. Click **Submit** or **Run**.
|
| 35 |
+
3. The app will return:
|
| 36 |
+
- **Sentiment** (Positive / Neutral / Negative)
|
| 37 |
+
- **Risk Score** (rounded to 2 decimal places)
|
| 38 |
+
- **Escalation Trigger** (Yes / No)
|
| 39 |
+
|
| 40 |
+
### Example Inputs
|
| 41 |
+
|
| 42 |
+
- `"I am so frustrated with this service!"`
|
| 43 |
+
- `"I had an amazing experience, thank you!"`
|
| 44 |
+
- `"This is unacceptable, I will report this."`
|
| 45 |
+
|
| 46 |
+
---
|
| 47 |
+
|
| 48 |
+
## Dependencies
|
| 49 |
+
|
| 50 |
+
The app requires the following Python packages (all included in `requirements.txt`):
|
| 51 |
+
|
| 52 |
+
- `gradio`
|
| 53 |
+
- `transformers`
|
| 54 |
+
- `torch`
|
| 55 |
+
- `scipy`
|
| 56 |
+
- `sentencepiece`
|
| 57 |
+
- `protobuf`
|
| 58 |
+
- `langdetect`
|
| 59 |
+
|
| 60 |
+
---
|
| 61 |
+
|
| 62 |
+
## Notes
|
| 63 |
+
|
| 64 |
+
- The model runs entirely in Hugging Face Spaces. No additional setup is required if you use the provided `requirements.txt`.
|
| 65 |
+
- For best results, enter text in a single language at a time.
|
| 66 |
+
|
| 67 |
+
---
|
| 68 |
+
|
| 69 |
+
## Credits
|
| 70 |
+
|
| 71 |
+
Developed by Karthik Vinay for SocialAegis MVP.
|