Orawan commited on
Commit
24fe33e
·
1 Parent(s): 55a51be

Update app.py

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