Spaces:
Sleeping
Sleeping
Update load_model.py
Browse files- load_model.py +7 -4
load_model.py
CHANGED
@@ -1,5 +1,8 @@
|
|
1 |
-
from transformers import TFBertForSequenceClassification
|
2 |
-
import tensorflow as tf
|
3 |
|
4 |
-
#
|
5 |
-
|
|
|
|
|
|
|
|
|
|
1 |
+
from transformers import TFBertForSequenceClassification, BertTokenizer
|
|
|
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 = BertTokenizer.from_pretrained(model_name, use_auth_token="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")
|