Erfan11 commited on
Commit
8626faa
1 Parent(s): 4b09446

Update load_model.py

Browse files
Files changed (1) hide show
  1. load_model.py +4 -3
load_model.py CHANGED
@@ -1,4 +1,5 @@
1
- from transformers import BertForSequenceClassification
 
2
 
3
- # Load the model from your Hugging Face repository
4
- model = BertForSequenceClassification.from_pretrained("Erfan11/Neuracraft", from_tf=True)
 
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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")