dungeon29 commited on
Commit
0527e37
·
verified ·
1 Parent(s): 6a27a4f

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -2
app.py CHANGED
@@ -20,7 +20,7 @@ from rag_engine import RAGEngine
20
  from llm_client import LLMClient
21
 
22
  # --------- Config ----------
23
- REPO_ID = "khoa-done/phishing-detector"
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["model_state_dict"])
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