import streamlit as st def apply_custom_styles(): st.markdown(""" """, unsafe_allow_html=True) def show_factor_section(title, factors, color): if factors: st.markdown(f"""

{title}

""", unsafe_allow_html=True) def show_detailed_factors(good_factors, average_factors, bad_factors): for factor in good_factors: name, explanation = factor.split(':', 1) st.markdown(f"""
{name}

{explanation}

""", unsafe_allow_html=True) for factor in average_factors: name, explanation = factor.split(':', 1) st.markdown(f"""
{name}

{explanation}

""", unsafe_allow_html=True) for factor in bad_factors: name, explanation = factor.split(':', 1) st.markdown(f"""
{name}

{explanation}

""", unsafe_allow_html=True) def show_factor_summary(summary, verdict, sentiment_title): if len(summary) > 0: st.markdown(f"""
{sentiment_title}

{summary}

""", unsafe_allow_html=True)