marianeft commited on
Commit
8c1e479
·
1 Parent(s): 0735f46

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -4
app.py CHANGED
@@ -119,7 +119,4 @@ if url:
119
  sentence_scores = classify_sentences(text)
120
  for sentence, sentiment in sentence_scores:
121
  bg_color = background_colors[sentiment]
122
- st.markdown(f'<span style="background-color: {bg_color}">{sentence}</span>', unsafe_allow_html=True)
123
-
124
-
125
- # No 'else' needed here, as the error message is already handled above.
 
119
  sentence_scores = classify_sentences(text)
120
  for sentence, sentiment in sentence_scores:
121
  bg_color = background_colors[sentiment]
122
+ st.markdown(f'<span style="background-color: {bg_color}">{sentence}</span>', unsafe_allow_html=True)