Update app.py
Browse files
app.py
CHANGED
|
@@ -29,7 +29,7 @@ def display_sentiment_results(annotations):
|
|
| 29 |
sentence_sentiment = sentence.sentiment.score # Only extract sentiment score
|
| 30 |
sentence_text = sentence.text.content # Get the text of the sentence
|
| 31 |
st.write(f"Sentence {index} sentiment score: {sentence_sentiment:.2f}") # Removed sentence magnitude
|
| 32 |
-
st.write(f"
|
| 33 |
|
| 34 |
# Display overall sentiment with 2 decimal places
|
| 35 |
st.write(f"Overall Sentiment: score of {score:.2f} with magnitude of {magnitude:.2f}")
|
|
|
|
| 29 |
sentence_sentiment = sentence.sentiment.score # Only extract sentiment score
|
| 30 |
sentence_text = sentence.text.content # Get the text of the sentence
|
| 31 |
st.write(f"Sentence {index} sentiment score: {sentence_sentiment:.2f}") # Removed sentence magnitude
|
| 32 |
+
st.write(f"Sentence {index}: {sentence_text}") # Display the text of the sentence
|
| 33 |
|
| 34 |
# Display overall sentiment with 2 decimal places
|
| 35 |
st.write(f"Overall Sentiment: score of {score:.2f} with magnitude of {magnitude:.2f}")
|