Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
|
@@ -342,10 +342,10 @@ if st.session_state.results_a and st.session_state.results_b:
|
|
| 342 |
st.markdown("#### Source A Breakdown")
|
| 343 |
m1, m2 = st.columns(2)
|
| 344 |
m3, m4 = st.columns(2)
|
| 345 |
-
m1.metric("Subjectivity", f"{r_a['subjectivity_score']:.2f}")
|
| 346 |
-
m2.metric("Primary Emotion", r_a['primary_tone'].title())
|
| 347 |
-
m3.metric("Framing Lens", r_a['primary_theme'].title())
|
| 348 |
-
m4.metric("Reading Ease", f"{r_a['reading_ease']:.1f}")
|
| 349 |
|
| 350 |
st.plotly_chart(_create_sentiment_gauge(r_a["sentiment_score"], "Sentiment Bias"), use_container_width=True, key="gauge_a")
|
| 351 |
|
|
@@ -359,10 +359,10 @@ if st.session_state.results_a and st.session_state.results_b:
|
|
| 359 |
st.markdown("#### Source B Breakdown")
|
| 360 |
m1, m2 = st.columns(2)
|
| 361 |
m3, m4 = st.columns(2)
|
| 362 |
-
m1.metric("Subjectivity", f"{r_b['subjectivity_score']:.2f}")
|
| 363 |
-
m2.metric("Primary Emotion", r_b['primary_tone'].title())
|
| 364 |
-
m3.metric("Framing Lens", r_b['primary_theme'].title())
|
| 365 |
-
m4.metric("Reading Ease", f"{r_b['reading_ease']:.1f}")
|
| 366 |
|
| 367 |
st.plotly_chart(_create_sentiment_gauge(r_b["sentiment_score"], "Sentiment Bias"), use_container_width=True, key="gauge_b")
|
| 368 |
|
|
|
|
| 342 |
st.markdown("#### Source A Breakdown")
|
| 343 |
m1, m2 = st.columns(2)
|
| 344 |
m3, m4 = st.columns(2)
|
| 345 |
+
m1.metric("Subjectivity", f"{r_a['subjectivity_score']:.2f}", help="0 is objective, 1 is highly opinionated.")
|
| 346 |
+
m2.metric("Primary Emotion", str(r_a['primary_tone']).title())
|
| 347 |
+
m3.metric("Framing Lens", str(r_a['primary_theme']).title())
|
| 348 |
+
m4.metric("Reading Ease", f"{r_a['reading_ease']:.1f}", help="0-30 is college graduate level, 60-70 is 8th grade.")
|
| 349 |
|
| 350 |
st.plotly_chart(_create_sentiment_gauge(r_a["sentiment_score"], "Sentiment Bias"), use_container_width=True, key="gauge_a")
|
| 351 |
|
|
|
|
| 359 |
st.markdown("#### Source B Breakdown")
|
| 360 |
m1, m2 = st.columns(2)
|
| 361 |
m3, m4 = st.columns(2)
|
| 362 |
+
m1.metric("Subjectivity", f"{r_b['subjectivity_score']:.2f}", help="0 is objective, 1 is highly opinionated.")
|
| 363 |
+
m2.metric("Primary Emotion", str(r_b['primary_tone']).title())
|
| 364 |
+
m3.metric("Framing Lens", str(r_b['primary_theme']).title())
|
| 365 |
+
m4.metric("Reading Ease", f"{r_b['reading_ease']:.1f}", help="0-30 is college graduate level, 60-70 is 8th grade.")
|
| 366 |
|
| 367 |
st.plotly_chart(_create_sentiment_gauge(r_b["sentiment_score"], "Sentiment Bias"), use_container_width=True, key="gauge_b")
|
| 368 |
|