Khushter commited on
Commit
b2fadeb
·
1 Parent(s): a67b893

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -3
app.py CHANGED
@@ -13,8 +13,6 @@ st.write("Enter a Sentence to Analyze the Sentiment:")
13
  user_input = st.text_input("")
14
  st.write("Press the Enter key")
15
 
16
- if st.button("Analyze Sentiment"):
17
-
18
  if user_input:
19
  result = sentiment_pipeline(user_input)
20
  sentiment = result[0]["label"]
@@ -24,4 +22,4 @@ if user_input:
24
  st.write(f"Confidence: {confidence:.2%}")
25
 
26
  else:
27
- st.warning("Please enter some text for sentiment analysis.")
 
13
  user_input = st.text_input("")
14
  st.write("Press the Enter key")
15
 
 
 
16
  if user_input:
17
  result = sentiment_pipeline(user_input)
18
  sentiment = result[0]["label"]
 
22
  st.write(f"Confidence: {confidence:.2%}")
23
 
24
  else:
25
+ st.warning("Please enter some text for Finacial sentiment analysis.")