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