Update load_model.py
Browse files- load_model.py +6 -3
load_model.py
CHANGED
@@ -1,4 +1,7 @@
|
|
1 |
-
from transformers import
|
2 |
|
3 |
-
#
|
4 |
-
|
|
|
|
|
|
|
|
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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")
|