low_partners_chatbot / dataset_loader.py
cjzhi98's picture
Update dataset_loader.py
69489f9 verified
raw
history blame
391 Bytes
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()