NIEXCHE commited on
Commit
209d195
1 Parent(s): a63248d

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +3 -3
app.py CHANGED
@@ -3,10 +3,10 @@ from transformers import pipeline
3
 
4
  sentiment_pipeline = pipeline("sentiment-analysis")
5
 
6
- st.title("Sentiment Analysis with HuggingFace Spaces")
7
- st.write("Enter a sentence to analyze its sentiment:")
8
 
9
- user_input = st.text_input("")
10
  if user_input:
11
  result = sentiment_pipeline(user_input)
12
  sentiment = result[0]["label"]
 
3
 
4
  sentiment_pipeline = pipeline("sentiment-analysis")
5
 
6
+ st.title("Sentiment Analysis")
7
+ st.write("Welcome sentiment analysis Spaces' built using Streamlit and Hugging Face's Transformers library. The application allows users to input a sentence and receive a real-time sentiment analysis result, along with a confidence score.")
8
 
9
+ user_input = st.text_input("Write a sentence please:")
10
  if user_input:
11
  result = sentiment_pipeline(user_input)
12
  sentiment = result[0]["label"]