We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent f3ef58b commit 533abe9Copy full SHA for 533abe9
.github/workflows/sync-to-huggingface.yml
@@ -30,12 +30,16 @@ jobs:
30
from huggingface_hub import HfApi
31
import os
32
api = HfApi()
33
- api.upload_folder(
34
- folder_path='.',
35
- repo_id='dmpantiu/Eurus',
36
- repo_type='space',
37
- token=os.environ['HF_TOKEN'],
38
- ignore_patterns=['.git/*', '.github/*'],
39
- )
40
- print('Upload complete')
+ token = os.environ['HF_TOKEN']
+ for repo_id in ['CliDyn/Eurus', 'dmpantiu/Eurus']:
+ print(f'Uploading to {repo_id}...')
+ api.upload_folder(
+ folder_path='.',
+ repo_id=repo_id,
+ repo_type='space',
+ token=token,
41
+ ignore_patterns=['.git/*', '.github/*'],
42
+ )
43
+ print(f'Upload to {repo_id} complete')
44
+ print('All uploads complete')
45
"
0 commit comments