Orawan commited on
Commit
4d8c883
·
1 Parent(s): 24fe33e

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -2
app.py CHANGED
@@ -30,9 +30,9 @@ if st.button("ตรวจสอบ"):
30
  if label == "LABEL_FOR_SPAM": # แทน LABEL_FOR_SPAM ด้วยป้ายกำกับสแปมของโมเดลของคุณ
31
  st.write(f"สแปม: {label} ({confidence:.2f}% ความมั่นใจ)")
32
  if confidence >= 80:
33
- st.warning("โมเดลมั่นใจว่าข้อความนี้เป็นสแปม")
34
  else:
35
- st.success("โมเดลมั่นใจว่าข้อความนี้ไม่เป็นสแปม")
36
  else:
37
  st.write(f"ไม่เป็นสแปม: {label} ({confidence:.2f}% ความมั่นใจ)")
38
  st.success("โมเดลมั่นใจว่าข้อความนี้ไม่เป็นสแปม")
 
30
  if label == "LABEL_FOR_SPAM": # แทน LABEL_FOR_SPAM ด้วยป้ายกำกับสแปมของโมเดลของคุณ
31
  st.write(f"สแปม: {label} ({confidence:.2f}% ความมั่นใจ)")
32
  if confidence >= 80:
33
+ st.warning("โมเดลมั่นใจว่าข้อความนี้ไม่เป็นสแปม")
34
  else:
35
+ st.success("โมเดลมั่นใจว่าข้อความนี้เป็นสแปม")
36
  else:
37
  st.write(f"ไม่เป็นสแปม: {label} ({confidence:.2f}% ความมั่นใจ)")
38
  st.success("โมเดลมั่นใจว่าข้อความนี้ไม่เป็นสแปม")