Vinay115 commited on
Commit
8c68bc5
·
verified ·
1 Parent(s): 5421707

Update README.md

Browse files
Files changed (1) hide show
  1. README.md +71 -41
README.md CHANGED
@@ -1,41 +1,71 @@
1
- # SocialAegis MVP
2
-
3
- **SocialAegis** is a sentiment-based escalation engine designed to detect emotional volatility in social media posts. It analyzes text inputs, assigns a risk score, and triggers escalation if needed, helping identify potentially harmful or urgent content in real time.
4
-
5
- ## Features
6
- - **Sentiment Analysis:** Detects whether a post is positive, neutral, or negative.
7
- - **Risk Scoring:** Assigns a numerical risk score based on the emotional intensity of the text.
8
- - **Escalation Trigger:** Flags posts that may require moderation or immediate attention.
9
- - **Multilingual Support:** Works with multiple languages using `langdetect`.
10
-
11
- ## How to Use
12
- 1. Enter your text in the input box.
13
- 2. The tool will return:
14
- - **Sentiment:** Positive, Neutral, or Negative.
15
- - **Risk Score:** A numerical value (0–10) representing emotional volatility.
16
- - **Escalation Triggered:** Yes/No based on the risk score threshold.
17
-
18
- ### Example Inputs
19
- - `"I am so frustrated with this service!"` → Negative sentiment, high risk.
20
- - `"I had an amazing experience, thank you!"` → Positive sentiment, low risk.
21
- - `"This is unacceptable, I will report this."` → Negative sentiment, moderate/high risk.
22
-
23
- ## Dependencies
24
- The app uses the following Python libraries:
25
- - `gradio`
26
- - `transformers`
27
- - `torch`
28
- - `scipy`
29
- - `sentencepiece`
30
- - `protobuf`
31
- - `langdetect`
32
-
33
- ## Notes
34
- - Designed to run on Hugging Face Spaces with automatic dependency installation.
35
- - Compatible with text inputs in multiple languages and different formats (plain text, emojis, etc.).
36
- - The risk scoring logic can be customized in `app.py`.
37
-
38
- ---
39
-
40
- **Author:** Karthik Vinay and Team
41
- **Project:** SocialAegis
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
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.