File size: 372 Bytes
6baf3ad
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
# /// script
# dependencies = [
#   "huggingface_hub",
#   "python-dotenv",
# ]
# ///

from huggingface_hub import upload_folder
import os
from dotenv import load_dotenv

load_dotenv()

upload_folder(
    folder_path="build",
    path_in_repo="/",
    repo_id="datenlabor-bmz/ai-language-monitor",
    repo_type="space",
    token=os.getenv("HUGGINGFACE_ACCESS_TOKEN"),
)