Spaces:
Sleeping
Sleeping
Update README.md
Browse files
README.md
CHANGED
|
@@ -10,3 +10,109 @@ pinned: false
|
|
| 10 |
---
|
| 11 |
|
| 12 |
Check out the configuration reference at https://huggingface.co/docs/hub/spaces-config-reference
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 10 |
---
|
| 11 |
|
| 12 |
Check out the configuration reference at https://huggingface.co/docs/hub/spaces-config-reference
|
| 13 |
+
|
| 14 |
+
MicroAggression Insight Tool
|
| 15 |
+
|
| 16 |
+
π An AI-powered tool for analyzing, categorizing, and visualizing microaggressions based on sentiment and NLP processing.
|
| 17 |
+
|
| 18 |
+
π Project Overview
|
| 19 |
+
|
| 20 |
+
The MicroAggression Insight Tool is a research-driven web app that:
|
| 21 |
+
β
Collects user-reported microaggression experiences
|
| 22 |
+
β
Analyzes sentiment polarity (negative, neutral, positive)
|
| 23 |
+
β
Categorizes microaggressions into: Microinvalidation, Microinsult, Microassault
|
| 24 |
+
β
Visualizes trends using bar charts & word clouds
|
| 25 |
+
β
Supports social psychology & intergroup relations research
|
| 26 |
+
|
| 27 |
+
This project aligns with social psychology research on discrimination perception and consequences, specifically for microaggressions in different social contexts.
|
| 28 |
+
|
| 29 |
+
π― How to Use the App
|
| 30 |
+
|
| 31 |
+
1οΈβ£ Enter a statement (e.g., βYouβre so articulate for someone like youβ)
|
| 32 |
+
2οΈβ£ Click Analyze
|
| 33 |
+
3οΈβ£ The app will:
|
| 34 |
+
β’ Categorize the statement into Microinvalidation, Microinsult, or Microassault
|
| 35 |
+
β’ Analyze Sentiment (-1 = Negative, 0 = Neutral, +1 = Positive)
|
| 36 |
+
β’ Visualize common patterns across all collected data
|
| 37 |
+
|
| 38 |
+
π Live App: Check it out on Hugging Face Spaces
|
| 39 |
+
|
| 40 |
+
π₯οΈ Installation & Running Locally
|
| 41 |
+
|
| 42 |
+
π§ If you want to run this app on your local machine, follow these steps:
|
| 43 |
+
|
| 44 |
+
1. Clone the Repository
|
| 45 |
+
|
| 46 |
+
git clone https://github.com/durganihantri/MicroAggression-Insight-Tool.git
|
| 47 |
+
cd MicroAggression-Insight-Tool
|
| 48 |
+
|
| 49 |
+
2. Create a Virtual Environment (Optional)
|
| 50 |
+
|
| 51 |
+
python -m venv venv
|
| 52 |
+
source venv/bin/activate # On Mac/Linux
|
| 53 |
+
venv\Scripts\activate # On Windows
|
| 54 |
+
|
| 55 |
+
3. Install Dependencies
|
| 56 |
+
|
| 57 |
+
pip install -r requirements.txt
|
| 58 |
+
|
| 59 |
+
4. Run the Streamlit App
|
| 60 |
+
|
| 61 |
+
streamlit run app.py
|
| 62 |
+
|
| 63 |
+
β
The app will launch in your browser at http://localhost:8501.
|
| 64 |
+
|
| 65 |
+
π Deployment on Hugging Face Spaces
|
| 66 |
+
|
| 67 |
+
If you want to deploy this app on Hugging Face Spaces, follow these steps:
|
| 68 |
+
|
| 69 |
+
1οΈβ£ Go to Hugging Face Spaces
|
| 70 |
+
2οΈβ£ Click βCreate new Spaceβ
|
| 71 |
+
3οΈβ£ Set SDK to Streamlit
|
| 72 |
+
4οΈβ£ Upload these files:
|
| 73 |
+
β’ app.py (Main Streamlit app)
|
| 74 |
+
β’ requirements.txt (Dependencies)
|
| 75 |
+
5οΈβ£ Click βCommitβ and wait for the app to deploy.
|
| 76 |
+
|
| 77 |
+
π Live App URL: Your Hugging Face Spaces Link
|
| 78 |
+
|
| 79 |
+
π οΈ Technical Details
|
| 80 |
+
β’ Framework: Streamlit
|
| 81 |
+
β’ Backend: Python (NLTK, TextBlob for NLP processing)
|
| 82 |
+
β’ Data Storage: CSV-based (for collecting user input)
|
| 83 |
+
β’ Visualization: Matplotlib, WordCloud
|
| 84 |
+
β’ Modeling Techniques:
|
| 85 |
+
β’ Sentiment Analysis via TextBlob
|
| 86 |
+
β’ Categorization via basic NLP keyword matching
|
| 87 |
+
|
| 88 |
+
π Features & Future Enhancements
|
| 89 |
+
|
| 90 |
+
β
Current Features
|
| 91 |
+
|
| 92 |
+
βοΈ Microaggression categorization (Microinvalidation, Microinsult, Microassault)
|
| 93 |
+
βοΈ Sentiment analysis for emotional impact
|
| 94 |
+
βοΈ Bar chart & word cloud visualizations
|
| 95 |
+
βοΈ User-reported microaggressions database
|
| 96 |
+
|
| 97 |
+
π₯ Planned Enhancements
|
| 98 |
+
|
| 99 |
+
π Improve NLP classification (use GPT-based models for better accuracy)
|
| 100 |
+
π Add multilingual support (expand analysis to other languages)
|
| 101 |
+
π Integrate advanced analytics (e.g., time trends, deeper sentiment shifts)
|
| 102 |
+
π Export reports for researchers (downloadable CSV files)
|
| 103 |
+
|
| 104 |
+
π§βπ» Author & Contact
|
| 105 |
+
|
| 106 |
+
π€ Developed by: Durganihantri
|
| 107 |
+
π‘ For inquiries, research collaboration, or feedback:
|
| 108 |
+
π§ Email: [email protected]
|
| 109 |
+
π LinkedIn: http://linkedin.com/in/durganihantri
|
| 110 |
+
|
| 111 |
+
β Contribute & Support
|
| 112 |
+
|
| 113 |
+
If you find this project useful, please consider starring the repo β and contributing!
|
| 114 |
+
|
| 115 |
+
π To contribute:
|
| 116 |
+
β’ Fork this repository
|
| 117 |
+
β’ Make improvements
|
| 118 |
+
β’ Submit a Pull Request!
|