File size: 391 Bytes
4f5f1ec
 
 
 
 
 
 
 
 
 
 
 
 
 
69489f9
4f5f1ec
 
 
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
from huggingface_hub import Repository
from huggingface_hub import login
import os
from dotenv import load_dotenv

load_dotenv()


def load_dataset():
    login(token=os.getenv("HUB_TOKEN"))

    repo = Repository(
        local_dir="low_partners_chatbot_data",
        repo_type="dataset",
        clone_from="cjzhi98/low_partner_chatbot_2nd",
        token=True,
    )
    repo.git_pull()