dungeon29 commited on
Commit
df5b340
·
verified ·
1 Parent(s): 5326532

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -6
app.py CHANGED
@@ -1,16 +1,12 @@
1
  import torch
2
  import torch.nn.functional as F
3
- from transformers import AutoTokenizer, AutoModelForSequenceClassification
4
  from huggingface_hub import hf_hub_download
5
  import gradio as gr
6
  import requests
7
  import re
8
- from urllib.parse import urlparse
9
- from bs4 import BeautifulSoup
10
  import time
11
- import os
12
  import sys
13
- import asyncio
14
  import logging
15
  import urllib3 # Import urllib3 to handle warnings
16
 
@@ -39,7 +35,7 @@ from rag_engine import RAGEngine
39
  from llm_client import LLMClient
40
 
41
  # --------- Config ----------
42
- REPO_ID = "dungeon29/deberta-lstm-detect-phishing"
43
  CKPT_NAME = "pytorch_model.bin" # the .pt file name
44
  MODEL_NAME = "microsoft/deberta-base" # base tokenizer/backbone
45
  LABELS = ["benign", "phishing"] # adjust to your classes
 
1
  import torch
2
  import torch.nn.functional as F
3
+ from transformers import AutoTokenizer
4
  from huggingface_hub import hf_hub_download
5
  import gradio as gr
6
  import requests
7
  import re
 
 
8
  import time
 
9
  import sys
 
10
  import logging
11
  import urllib3 # Import urllib3 to handle warnings
12
 
 
35
  from llm_client import LLMClient
36
 
37
  # --------- Config ----------
38
+ REPO_ID = "dungeon29/phishing-deberta-lstm" # HF repo that holds the checkpoint
39
  CKPT_NAME = "pytorch_model.bin" # the .pt file name
40
  MODEL_NAME = "microsoft/deberta-base" # base tokenizer/backbone
41
  LABELS = ["benign", "phishing"] # adjust to your classes