Spaces:
Build error
Build error
Update app.py
Browse files
app.py
CHANGED
|
@@ -2,6 +2,25 @@ import streamlit as st
|
|
| 2 |
import torch
|
| 3 |
from transformers import BertTokenizer, BertForSequenceClassification
|
| 4 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 5 |
# Load model from Hugging Face
|
| 6 |
MODEL_NAME = "sellestas/scam_slayer_model"
|
| 7 |
tokenizer = BertTokenizer.from_pretrained("bert-base-uncased")
|
|
|
|
| 2 |
import torch
|
| 3 |
from transformers import BertTokenizer, BertForSequenceClassification
|
| 4 |
|
| 5 |
+
|
| 6 |
+
# Sidebar About Us Button
|
| 7 |
+
with st.sidebar:
|
| 8 |
+
if st.button("ℹ️ About Scam Slayer"):
|
| 9 |
+
st.markdown("""
|
| 10 |
+
## 📌 Scam Slayer
|
| 11 |
+
**AI-powered email security tool** that detects phishing threats.
|
| 12 |
+
|
| 13 |
+
✅ **Purpose**: Prevents phishing attacks using AI.
|
| 14 |
+
✅ **Model**: Fine-tuned BERT classifier.
|
| 15 |
+
✅ **Developer**: Built for the **SANS AI Cybersecurity Hackathon 2025**.
|
| 16 |
+
✅ **Features**:
|
| 17 |
+
- Detects **Malicious, Suspicious, or Non-Malicious** emails.
|
| 18 |
+
- Uses **NLP** to analyze email content.
|
| 19 |
+
- Provides a **confidence score (1-100%)**.
|
| 20 |
+
|
| 21 |
+
**Version**: 1.0.0
|
| 22 |
+
""")
|
| 23 |
+
|
| 24 |
# Load model from Hugging Face
|
| 25 |
MODEL_NAME = "sellestas/scam_slayer_model"
|
| 26 |
tokenizer = BertTokenizer.from_pretrained("bert-base-uncased")
|