Spaces:
Runtime error
Runtime error
Update app.py
Browse files
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("
|
9 |
-
st.write("Classification
|
10 |
|
11 |
# Text input for user to enter the text to classify
|
12 |
-
text = st.text_area("Enter the
|
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"):
|