lguoao123 commited on
Commit
dff2789
·
verified ·
1 Parent(s): 6e3aa7b

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +3 -3
app.py CHANGED
@@ -5,11 +5,11 @@ from transformers import pipeline
5
  classifier = pipeline("text-classification",model='lguoao123/model2', return_all_scores=True)
6
 
7
  # Streamlit application title
8
- st.title("Text Classification")
9
- st.write("Classification for 6 emotions: sadness, joy, love, anger, fear, surprise")
10
 
11
  # Text input for user to enter the text to classify
12
- text = st.text_area("Enter the text to classify", "")
13
 
14
  # Perform text classification when the user clicks the "Classify" button
15
  if st.button("Classify"):
 
5
  classifier = pipeline("text-classification",model='lguoao123/model2', return_all_scores=True)
6
 
7
  # Streamlit application title
8
+ st.title("Financial News Sentiment Classification")
9
+ st.write("Classification")
10
 
11
  # Text input for user to enter the text to classify
12
+ text = st.text_area("Enter the financial news to classify", "")
13
 
14
  # Perform text classification when the user clicks the "Classify" button
15
  if st.button("Classify"):