Update app.py
Browse files
app.py
CHANGED
@@ -3,10 +3,10 @@ from transformers import pipeline
|
|
3 |
|
4 |
sentiment_pipeline = pipeline("sentiment-analysis")
|
5 |
|
6 |
-
st.title("Sentiment Analysis
|
7 |
-
st.write("
|
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"]
|