Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
@@ -7,7 +7,7 @@ from transformers import pipeline, AutoModelForSequenceClassification, AutoToken
|
|
7 |
@st.cache(allow_output_mutation=True)
|
8 |
def load_models():
|
9 |
image_pipeline = pipeline("image-to-text", model="microsoft/trocr-large-printed")
|
10 |
-
phishing_model = AutoModelForSequenceClassification.from_pretrained("kithangw/phishing_link_detection"
|
11 |
phishing_tokenizer = AutoTokenizer.from_pretrained("google/bert_uncased_L-2_H-128_A-2")
|
12 |
return image_pipeline, phishing_model, phishing_tokenizer
|
13 |
|
|
|
7 |
@st.cache(allow_output_mutation=True)
|
8 |
def load_models():
|
9 |
image_pipeline = pipeline("image-to-text", model="microsoft/trocr-large-printed")
|
10 |
+
phishing_model = AutoModelForSequenceClassification.from_pretrained("kithangw/phishing_link_detection", num_labels=2)
|
11 |
phishing_tokenizer = AutoTokenizer.from_pretrained("google/bert_uncased_L-2_H-128_A-2")
|
12 |
return image_pipeline, phishing_model, phishing_tokenizer
|
13 |
|