Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
@@ -6,7 +6,7 @@ sentiment_pipeline = pipeline("sentiment-analysis")
|
|
6 |
|
7 |
# Streamlit UI
|
8 |
st.title("Sentiment Analysis")
|
9 |
-
st.write("Enter text below to analyse the sentiment
|
10 |
st.write("You can copy and paste a comment from social media for example.")
|
11 |
|
12 |
# Text input
|
@@ -23,4 +23,4 @@ if st.button("Analyse Sentiment"):
|
|
23 |
confidence_percentage = score * 100
|
24 |
st.write(f"Sentiment: {sentiment} (Confidence: {confidence_percentage:.2f}%)")
|
25 |
else:
|
26 |
-
st.write("Please enter some text to
|
|
|
6 |
|
7 |
# Streamlit UI
|
8 |
st.title("Sentiment Analysis")
|
9 |
+
st.write("Enter text below to analyse the sentiment.")
|
10 |
st.write("You can copy and paste a comment from social media for example.")
|
11 |
|
12 |
# Text input
|
|
|
23 |
confidence_percentage = score * 100
|
24 |
st.write(f"Sentiment: {sentiment} (Confidence: {confidence_percentage:.2f}%)")
|
25 |
else:
|
26 |
+
st.write("Please enter some text to proceed.")
|