cyberandy commited on
Commit
7a0c125
Β·
1 Parent(s): 4368220

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +5 -3
app.py CHANGED
@@ -48,11 +48,13 @@ if st.button("Analyze"):
48
 
49
  # Display traffic light system
50
  if M == 2 and T == 2:
51
- st.markdown("<h3 style='text-align: center; color: green;'>🟒 Content is highly relevant and trustworthy</h3>", unsafe_allow_html=True)
 
 
52
  elif M == 1 or T == 1:
53
- st.markdown("<h3 style='text-align: center; color: orange;'>🟑 Content is partly relevant/helpful</h3>", unsafe_allow_html=True)
54
  else:
55
- st.markdown("<h3 style='text-align: center; color: red;'>πŸ”΄ Content is not relevant</h3>", unsafe_allow_html=True)
56
 
57
  except (KeyError, IndexError, ValueError) as e:
58
  st.error(f"Error extracting analysis results: {str(e)}")
 
48
 
49
  # Display traffic light system
50
  if M == 2 and T == 2:
51
+ st.markdown("<h4 style='text-align: center; color: green;'>🟒 Content is highly relevant and trustworthy</h4>", unsafe_allow_html=True)
52
+ elif M == 0 and T == 1:
53
+ st.markdown("<h4 style='text-align: center; color: orange;'>🟑 Content is irrelevant even if the webpage is trustworthy</h4>", unsafe_allow_html=True)
54
  elif M == 1 or T == 1:
55
+ st.markdown("<h4 style='text-align: center; color: orange;'>🟑 Content is partly relevant/helpful</h4>", unsafe_allow_html=True)
56
  else:
57
+ st.markdown("<h4 style='text-align: center; color: red;'>πŸ”΄ Content is not relevant</h4>", unsafe_allow_html=True)
58
 
59
  except (KeyError, IndexError, ValueError) as e:
60
  st.error(f"Error extracting analysis results: {str(e)}")