Rifky commited on
Commit
79e8ae9
·
1 Parent(s): 644c35e

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +8 -0
app.py CHANGED
@@ -89,6 +89,14 @@ if submit:
89
  if prediction == 0:
90
  st.success(f"This news is {label[prediction]}.")
91
  else:
 
 
 
 
 
 
 
 
92
  st.error(f"This news is {label[prediction]}.")
93
 
94
  with st.expander("Related Articles"):
 
89
  if prediction == 0:
90
  st.success(f"This news is {label[prediction]}.")
91
  else:
92
+ st.markdown("""<p style="background-color: rgb(254, 242, 242);
93
+ color: rgb(153, 27, 27);
94
+ font-size: 14px;
95
+ border-radius: 7px;
96
+ padding-left: 12px;
97
+ padding-top: 13px;
98
+ padding-bottom: 13px;
99
+ line-height: 25px;">This article is {label[prediction]}.</p>""", unsafe_allow_html=True)
100
  st.error(f"This news is {label[prediction]}.")
101
 
102
  with st.expander("Related Articles"):