File size: 407 Bytes
14a6661
0e7cada
14a6661
 
 
 
 
 
1
2
3
4
5
6
7
8
from transformers import TFBertForSequenceClassification, BertTokenizer

# Define the model name
model_name = "Erfan11/Neuracraft"

# Load the TensorFlow model and tokenizer
model = TFBertForSequenceClassification.from_pretrained(model_name, use_auth_token="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")
tokenizer = BertTokenizer.from_pretrained(model_name, use_auth_token="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")