Spaces:
Sleeping
Sleeping
Update tf_model.h5
Browse files- tf_model.h5 +6 -4
tf_model.h5
CHANGED
@@ -1,5 +1,7 @@
|
|
1 |
-
from transformers import
|
2 |
|
3 |
-
|
4 |
-
|
5 |
-
|
|
|
|
|
|
1 |
+
from transformers import AutoModelForCausalLM, AutoTokenizer
|
2 |
|
3 |
+
def load_model():
|
4 |
+
model_name = "Erfan11/Neuracraft"
|
5 |
+
tokenizer = AutoTokenizer.from_pretrained(model_name)
|
6 |
+
model = AutoModelForCausalLM.from_pretrained(model_name)
|
7 |
+
return model, tokenizer
|