Spaces:
Sleeping
Sleeping
Update app.py
Browse files
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 >=
|
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("โมเดลมั่นใจว่าข้อความนี้ไม่เป็นสแปม")
|