Spaces:
Sleeping
Sleeping
Commit
·
9641f6a
1
Parent(s):
e0cbfe0
renamed to app.py
Browse files- README.md +7 -0
- EDxHuggingface.py → app.py +1 -1
README.md
CHANGED
|
@@ -1,3 +1,10 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
# GoEmotions Dashboard - Analyzing Emotions in Text
|
| 2 |
|
| 3 |
This is a Python script that uses Streamlit, Plotly, and the Hugging Face API to create a web-based dashboard for analyzing emotions in text.
|
|
|
|
| 1 |
+
---
|
| 2 |
+
license: apache-2.0
|
| 3 |
+
title: GoEmotions Dashboard
|
| 4 |
+
sdk: streamlit
|
| 5 |
+
sdk_version: "1.22.0"
|
| 6 |
+
app_file: app.py
|
| 7 |
+
---
|
| 8 |
# GoEmotions Dashboard - Analyzing Emotions in Text
|
| 9 |
|
| 10 |
This is a Python script that uses Streamlit, Plotly, and the Hugging Face API to create a web-based dashboard for analyzing emotions in text.
|
EDxHuggingface.py → app.py
RENAMED
|
@@ -62,7 +62,7 @@ color_map = {
|
|
| 62 |
|
| 63 |
|
| 64 |
# Labels for Hate Speech Classification
|
| 65 |
-
label_hs = {"LABEL_0": "Acceptable", "LABEL_1": "
|
| 66 |
|
| 67 |
# Define default options
|
| 68 |
|
|
|
|
| 62 |
|
| 63 |
|
| 64 |
# Labels for Hate Speech Classification
|
| 65 |
+
label_hs = {"LABEL_0": "Acceptable", "LABEL_1": "Inappropriate", "LABEL_2": "Offensive", "LABEL_3": "Violent"}
|
| 66 |
|
| 67 |
# Define default options
|
| 68 |
|