Samuelblue commited on
Commit
320617d
·
verified ·
1 Parent(s): 050b22f

Create model.py

Browse files
Files changed (1) hide show
  1. model.py +9 -0
model.py ADDED
@@ -0,0 +1,9 @@
 
 
 
 
 
 
 
 
 
 
1
+ from transformers import AutoModel
2
+
3
+ model = AutoModel.from_pretrained("google-bert/bert-base-cased")
4
+
5
+ # Push the model to your namespace with the name "my-finetuned-bert".
6
+ model.push_to_hub("my-finetuned-bert")
7
+
8
+ # Push the model to an organization with the name "my-finetuned-bert".
9
+ model.push_to_hub("huggingface/model-test")