Spaces:
Paused
Paused
Update app.py
Browse files
app.py
CHANGED
|
@@ -20,7 +20,7 @@ from rag_engine import RAGEngine
|
|
| 20 |
from llm_client import LLMClient
|
| 21 |
|
| 22 |
# --------- Config ----------
|
| 23 |
-
REPO_ID = "
|
| 24 |
CKPT_NAME = "pytorch_model.bin"
|
| 25 |
MODEL_NAME = "microsoft/deberta-base" # base tokenizer/backbone
|
| 26 |
LABELS = ["benign", "phishing"] # adjust to your classes
|
|
@@ -41,7 +41,7 @@ model = DeBERTaLSTMClassifier()
|
|
| 41 |
|
| 42 |
# Load weights
|
| 43 |
try:
|
| 44 |
-
model.load_state_dict(checkpoint
|
| 45 |
except RuntimeError as e:
|
| 46 |
if "attention" in str(e):
|
| 47 |
# Old model without attention layer - initialize attention layer and load partial state
|
|
|
|
| 20 |
from llm_client import LLMClient
|
| 21 |
|
| 22 |
# --------- Config ----------
|
| 23 |
+
REPO_ID = "dungeon29/deberta-lstm-detect-phishing"
|
| 24 |
CKPT_NAME = "pytorch_model.bin"
|
| 25 |
MODEL_NAME = "microsoft/deberta-base" # base tokenizer/backbone
|
| 26 |
LABELS = ["benign", "phishing"] # adjust to your classes
|
|
|
|
| 41 |
|
| 42 |
# Load weights
|
| 43 |
try:
|
| 44 |
+
model.load_state_dict(checkpoint)
|
| 45 |
except RuntimeError as e:
|
| 46 |
if "attention" in str(e):
|
| 47 |
# Old model without attention layer - initialize attention layer and load partial state
|