Spaces:
Runtime error
Runtime error
Ahmad-Moiz
commited on
Commit
·
b4fce39
1
Parent(s):
d2d7693
Update app.py
Browse files
app.py
CHANGED
@@ -20,8 +20,4 @@ if st.button("Analyze Sentiment"):
|
|
20 |
sentiment_score = results[0]["score"]
|
21 |
|
22 |
st.write(f"Sentiment: {sentiment_label}")
|
23 |
-
st.write(f"Confidence Score: {sentiment_score:.2f}")
|
24 |
-
|
25 |
-
# Run the Streamlit app
|
26 |
-
if _name_ == "_main_":
|
27 |
-
st.write("Enter a message and click 'Analyze Sentiment' to classify its sentiment.")
|
|
|
20 |
sentiment_score = results[0]["score"]
|
21 |
|
22 |
st.write(f"Sentiment: {sentiment_label}")
|
23 |
+
st.write(f"Confidence Score: {sentiment_score:.2f}")
|
|
|
|
|
|
|
|