Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
|
@@ -3,7 +3,7 @@ from transformers import pipeline
|
|
| 3 |
# Load the text classification model pipeline
|
| 4 |
classifier = pipeline("text-classification", model='isom5240sp24/bert-base-uncased-emotion', return_all_scores=True)
|
| 5 |
# Streamlit application title
|
| 6 |
-
st.title("Text Classification")
|
| 7 |
st.write("Classification for 6 emotions: sadness, joy, love, anger, fear, surprise")
|
| 8 |
# Text input for user to enter the text to classify
|
| 9 |
text = st.text_area("Enter the text to classify", "")
|
|
|
|
| 3 |
# Load the text classification model pipeline
|
| 4 |
classifier = pipeline("text-classification", model='isom5240sp24/bert-base-uncased-emotion', return_all_scores=True)
|
| 5 |
# Streamlit application title
|
| 6 |
+
st.title("Text Classification for you")
|
| 7 |
st.write("Classification for 6 emotions: sadness, joy, love, anger, fear, surprise")
|
| 8 |
# Text input for user to enter the text to classify
|
| 9 |
text = st.text_area("Enter the text to classify", "")
|