Erfan11 commited on
Commit
58d1031
1 Parent(s): 8366538

Update load_model.py

Browse files
Files changed (1) hide show
  1. load_model.py +6 -3
load_model.py CHANGED
@@ -1,4 +1,7 @@
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
 
3
+ # Define the model name
4
+ model_name = "Erfan11/Neuracraft"
5
+
6
+ # Load the TensorFlow model
7
+ model = TFBertForSequenceClassification.from_pretrained(model_name, use_auth_token="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")