Erfan11 commited on
Commit
b817823
1 Parent(s): 6060814

Update from_tf=True

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