Spaces:
Sleeping
Sleeping
Update load_model.py
Browse files- load_model.py +4 -3
load_model.py
CHANGED
@@ -1,4 +1,5 @@
|
|
1 |
-
from transformers import
|
|
|
2 |
|
3 |
-
# Load the model
|
4 |
-
model =
|
|
|
1 |
+
from transformers import TFBertForSequenceClassification
|
2 |
+
import tensorflow as tf
|
3 |
|
4 |
+
# Load the TensorFlow model
|
5 |
+
model = TFBertForSequenceClassification.from_pretrained("Erfan11/Neuracraft", from_tf=True, use_auth_token="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")
|