JerryWANG58 commited on
Commit
cc66131
1 Parent(s): 9b886f6

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -1
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='model_1', 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")
 
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")