Update app.py
Browse files
app.py
CHANGED
@@ -104,7 +104,8 @@ def build_result_tree(parent_elem, results):
|
|
104 |
sent_details.append(sent_res)
|
105 |
|
106 |
with parent_elem:
|
107 |
-
|
|
|
108 |
with st.container(border=True):
|
109 |
st.markdown('<hr style="margin: 0.5em 0 0 0;">', unsafe_allow_html=True)
|
110 |
st.markdown(
|
|
|
104 |
sent_details.append(sent_res)
|
105 |
|
106 |
with parent_elem:
|
107 |
+
result_hdr = ':red[Detected Discriminatory Sentiment]' if discriminatory_sentiment else ':green[No Discriminatory Sentiment Detected]'
|
108 |
+
st.markdown(f'### Results - {result_hdr}')
|
109 |
with st.container(border=True):
|
110 |
st.markdown('<hr style="margin: 0.5em 0 0 0;">', unsafe_allow_html=True)
|
111 |
st.markdown(
|