blazingbunny commited on
Commit
9e49297
·
verified ·
1 Parent(s): 0e3156c

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -1
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"Text from 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}")
 
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}")