roselyu commited on
Commit
da1b4ee
·
verified ·
1 Parent(s): 86eebf5

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -3
app.py CHANGED
@@ -2,8 +2,6 @@ import streamlit as st
2
  from transformers import pipeline
3
 
4
 
5
-
6
-
7
  # Streamlit application title
8
  st.title("Financial News Sentiment Analysis")
9
  st.write("Identify the sentiment and look into the key point to help you make decisions.")
@@ -14,7 +12,7 @@ st.write("Identify the sentiment and look into the key point to help you make de
14
  pipe = pipeline("text-classification", model="roselyu/FinSent-XLMR-FinNews")
15
 
16
  # User input and sentiment analysis
17
- default_summary = "Enter a financial news summary here"
18
  user_input = st.text_area("Enter a short financial news article to identify its sentiments:", value=default_summary)
19
 
20
 
 
2
  from transformers import pipeline
3
 
4
 
 
 
5
  # Streamlit application title
6
  st.title("Financial News Sentiment Analysis")
7
  st.write("Identify the sentiment and look into the key point to help you make decisions.")
 
12
  pipe = pipeline("text-classification", model="roselyu/FinSent-XLMR-FinNews")
13
 
14
  # User input and sentiment analysis
15
+ default_summary = "Enter a financial news summary here."
16
  user_input = st.text_area("Enter a short financial news article to identify its sentiments:", value=default_summary)
17
 
18