Spaces:
Running
Running
Update app.py
Browse files
app.py
CHANGED
|
@@ -371,7 +371,7 @@ if st.session_state.results_a and st.session_state.results_b:
|
|
| 371 |
st.plotly_chart(_create_sentiment_gauge(r_a["sentiment_score"], "Sentiment Bias"), use_container_width=True, key="gauge_a")
|
| 372 |
|
| 373 |
st.markdown("**Key Framing Language:**")
|
| 374 |
-
annotated_text =
|
| 375 |
st.markdown(f"<div style='background-color: #f8fafc; padding: 1rem; border-radius: 8px; border: 1px solid #e2e8f0;'>{annotated_text}</div>", unsafe_allow_html=True)
|
| 376 |
|
| 377 |
# Render Column B
|
|
@@ -388,5 +388,5 @@ if st.session_state.results_a and st.session_state.results_b:
|
|
| 388 |
st.plotly_chart(_create_sentiment_gauge(r_b["sentiment_score"], "Sentiment Bias"), use_container_width=True, key="gauge_b")
|
| 389 |
|
| 390 |
st.markdown("**Key Framing Language:**")
|
| 391 |
-
annotated_text =
|
| 392 |
st.markdown(f"<div style='background-color: #f8fafc; padding: 1rem; border-radius: 8px; border: 1px solid #e2e8f0;'>{annotated_text}</div>", unsafe_allow_html=True)
|
|
|
|
| 371 |
st.plotly_chart(_create_sentiment_gauge(r_a["sentiment_score"], "Sentiment Bias"), use_container_width=True, key="gauge_a")
|
| 372 |
|
| 373 |
st.markdown("**Key Framing Language:**")
|
| 374 |
+
annotated_text = _highlight_framing_words(user_article_a)
|
| 375 |
st.markdown(f"<div style='background-color: #f8fafc; padding: 1rem; border-radius: 8px; border: 1px solid #e2e8f0;'>{annotated_text}</div>", unsafe_allow_html=True)
|
| 376 |
|
| 377 |
# Render Column B
|
|
|
|
| 388 |
st.plotly_chart(_create_sentiment_gauge(r_b["sentiment_score"], "Sentiment Bias"), use_container_width=True, key="gauge_b")
|
| 389 |
|
| 390 |
st.markdown("**Key Framing Language:**")
|
| 391 |
+
annotated_text = _highlight_framing_words(user_article_b)
|
| 392 |
st.markdown(f"<div style='background-color: #f8fafc; padding: 1rem; border-radius: 8px; border: 1px solid #e2e8f0;'>{annotated_text}</div>", unsafe_allow_html=True)
|