lyx97 commited on
Commit
4a17f96
·
1 Parent(s): 270e1b9

commit files to HF hub

Browse files
Files changed (1) hide show
  1. tmp.py +11 -0
tmp.py ADDED
@@ -0,0 +1,11 @@
 
 
 
 
 
 
 
 
 
 
 
 
1
+ from huggingface_hub import Repository, HfApi
2
+ import os
3
+ hf_token = os.getenv('HF_TOKEN')
4
+ api = HfApi(token=hf_token)
5
+ repo = Repository(
6
+ local_dir=".",
7
+ clone_from="https://huggingface.co/spaces/lyx97/TempCompass",
8
+ use_auth_token=hf_token,
9
+ )
10
+
11
+ print(repo.git_remote_url())