Update model_loading.py
Browse files- model_loading.py +6 -7
model_loading.py
CHANGED
@@ -1,9 +1,8 @@
|
|
1 |
-
|
2 |
-
from transformers import pipeline
|
3 |
|
4 |
-
|
5 |
-
|
6 |
-
from transformers import AutoTokenizer, AutoModelForCausalLM
|
7 |
|
8 |
-
|
9 |
-
model =
|
|
|
|
1 |
+
from transformers import TFBertForSequenceClassification, BertTokenizerFast
|
|
|
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 = BertTokenizerFast.from_pretrained(model_name, use_auth_token="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")
|