Spaces:
Sleeping
Sleeping
Update app.py
Browse files
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)
|
|
|
|
|
|