Erfan11 commited on
Commit
14a6661
1 Parent(s): a4cce3c

Update load_model.py

Browse files
Files changed (1) hide show
  1. load_model.py +7 -4
load_model.py CHANGED
@@ -1,5 +1,8 @@
1
- from transformers import TFBertForSequenceClassification
2
- import tensorflow as tf
3
 
4
- # Load the TensorFlow model
5
- model = TFBertForSequenceClassification.from_pretrained("Erfan11/Neuracraft", from_tf=True, use_auth_token="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")
 
 
 
 
 
1
+ from transformers import TFBertForSequenceClassification, BertTokenizer
 
2
 
3
+ # Define the model name
4
+ model_name = "Erfan11/Neuracraft"
5
+
6
+ # Load the TensorFlow model and tokenizer
7
+ model = TFBertForSequenceClassification.from_pretrained(model_name, use_auth_token="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")
8
+ tokenizer = BertTokenizer.from_pretrained(model_name, use_auth_token="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")