klse-chatbot / dataset_loader.py
cjzhi98's picture
first commit
83e6566
raw
history blame contribute delete
372 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="klse_cahtbot_data",
repo_type="dataset",
clone_from="cjzhi98/klse-cahtbot",
token=True,
)
repo.git_pull()