Spaces:
Sleeping
Sleeping
Commit
•
cc66131
1
Parent(s):
9b886f6
Update app.py
Browse files
app.py
CHANGED
@@ -1,7 +1,7 @@
|
|
1 |
import streamlit as st
|
2 |
from transformers import pipeline
|
3 |
# Load the text classification model pipeline
|
4 |
-
classifier = pipeline("text-classification", model='
|
5 |
# Streamlit application title
|
6 |
st.title("Text Classification")
|
7 |
st.write("Classification for 6 emotions: sadness, joy, love, anger, fear, surprise")
|
|
|
1 |
import streamlit as st
|
2 |
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")
|