privateuserh commited on
Commit
6c48c3a
·
verified ·
1 Parent(s): 002573e

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -2
app.py CHANGED
@@ -8,13 +8,13 @@ tokenizer = AutoTokenizer.from_pretrained(model_name)
8
  model = AutoModelForSequenceClassification.from_pretrained(model_name)
9
 
10
  # Setting the page title
11
- st.title("Financial News Sentiment Analysis")
12
 
13
  # Input option: Text or URL
14
  input_option = st.radio("Choose input type:", ["Text Input", "URL Input"])
15
 
16
  if input_option == "Text Input":
17
- text_input = st.text_area("Enter Financial News:", "DEMO : Tesla stock is soaring after record-breaking earnings.")
18
  else:
19
  url_input = st.text_input("Enter URL to scrape headline:")
20
  if url_input:
 
8
  model = AutoModelForSequenceClassification.from_pretrained(model_name)
9
 
10
  # Setting the page title
11
+ st.title("+ - Neutral./ News Sentiment Analysis")
12
 
13
  # Input option: Text or URL
14
  input_option = st.radio("Choose input type:", ["Text Input", "URL Input"])
15
 
16
  if input_option == "Text Input":
17
+ text_input = st.text_area("Enter Financial News:", "DEMO : Cryptocurrency is mooning after record-breaking year.")
18
  else:
19
  url_input = st.text_input("Enter URL to scrape headline:")
20
  if url_input: