Spaces:
Runtime error
Runtime error
Update push.py
Browse files
push.py
CHANGED
|
@@ -0,0 +1,11 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
from huggingface_hub import login
|
| 2 |
+
from transformers import AutoTokenizer, AutoModelForCausalLM
|
| 3 |
+
|
| 4 |
+
login() # Enter your HF token
|
| 5 |
+
|
| 6 |
+
model.push_to_hub("skilllink-coach")
|
| 7 |
+
tokenizer.push_to_hub("skilllink-coach")
|
| 8 |
+
# This code pushes the model and tokenizer to the Hugging Face Hub under the name "skilllink-coach".
|
| 9 |
+
# Make sure you have the necessary permissions to push to this repository.
|
| 10 |
+
|
| 11 |
+
|