File size: 392 Bytes
9963647
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
import os
from huggingface_hub import HfApi

api = HfApi()
new_space_id = "FincH12/Automation_Threads_EU"

print("Uploading files...")
api.upload_folder(
    folder_path=".",
    repo_id=new_space_id,
    repo_type="space",
    commit_message="Initial commit from local",
    ignore_patterns=[".git", ".git/*", "__pycache__", "__pycache__/*", "*.pyc"]
)
print("Files uploaded successfully.")