Spaces:
Sleeping
Sleeping
Commit
·
8e632d2
1
Parent(s):
3f1920d
Add model "bhadresh-savani/distilbert-base-uncased-emotion"
Browse files
app.py
CHANGED
@@ -3,10 +3,11 @@ from transformers import pipeline
|
|
3 |
|
4 |
print ("Load hv model...")
|
5 |
|
6 |
-
#
|
7 |
-
|
8 |
-
|
9 |
-
""")
|
10 |
|
11 |
-
|
12 |
-
st.
|
|
|
|
|
|
3 |
|
4 |
print ("Load hv model...")
|
5 |
|
6 |
+
# Load the pre-trained emotion classification pipeline
|
7 |
+
model_name = "bhadresh-savani/distilbert-base-uncased-emotion"
|
8 |
+
emotion_classifier = pipeline("text-classification", model=model_name)
|
|
|
9 |
|
10 |
+
# Title and Description
|
11 |
+
st.title("Emotion Classifier")
|
12 |
+
st.write("""write down how your day went or what your mood is.
|
13 |
+
""")
|