File size: 381 Bytes
ce62be3
 
 
 
 
 
 
 
 
 
 
b55de11
 
ce62be3
 
 
 
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
from huggingface_hub import Repository
from huggingface_hub import login
import os

def load_dataset():
    login(token = os.environ['HUB_TOKEN'])

    repo = Repository(
        local_dir="agent_function",
        repo_type="dataset",
        clone_from="gheng/unique_fire",
        token=True,
        git_email='zhiheng_dev@dahreply.ai'
    )
    repo.git_pull()

load_dataset()