Rodrigo Uribe
commited on
Commit
•
87e15b9
1
Parent(s):
474d9f8
username
Browse files
app.py
CHANGED
@@ -2,7 +2,7 @@ import gradio as gr
|
|
2 |
from transformers import TFDistilBertForSequenceClassification, DistilBertTokenizerFast
|
3 |
|
4 |
# Load the model and tokenizer from Hugging Face Hub
|
5 |
-
model_name = "HamOrSpam_Model" # Replace with your actual model path
|
6 |
tokenizer = DistilBertTokenizerFast.from_pretrained(model_name)
|
7 |
model = TFDistilBertForSequenceClassification.from_pretrained(model_name)
|
8 |
|
|
|
2 |
from transformers import TFDistilBertForSequenceClassification, DistilBertTokenizerFast
|
3 |
|
4 |
# Load the model and tokenizer from Hugging Face Hub
|
5 |
+
model_name = "Buebito\HamOrSpam_Model" # Replace with your actual model path
|
6 |
tokenizer = DistilBertTokenizerFast.from_pretrained(model_name)
|
7 |
model = TFDistilBertForSequenceClassification.from_pretrained(model_name)
|
8 |
|