bert
Browse files- app.py +0 -2
- config.json +3 -0
app.py
CHANGED
|
@@ -1,7 +1,5 @@
|
|
| 1 |
import gradio as gr
|
| 2 |
from transformers import pipeline
|
| 3 |
-
import os
|
| 4 |
-
os.environ['HF_TOKEN']='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'
|
| 5 |
|
| 6 |
def check_spam(text):
|
| 7 |
classifier = pipeline("text-classification", model="ericjedha/spam_finetuned_bert_overf")
|
|
|
|
| 1 |
import gradio as gr
|
| 2 |
from transformers import pipeline
|
|
|
|
|
|
|
| 3 |
|
| 4 |
def check_spam(text):
|
| 5 |
classifier = pipeline("text-classification", model="ericjedha/spam_finetuned_bert_overf")
|
config.json
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
{
|
| 2 |
+
"model_type": "bert"
|
| 3 |
+
}
|