spsetia-chatbot / dataset_loader.py
cjzhi98's picture
Upload 3 files
1be2c8e verified
raw
history blame contribute delete
378 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="spsetia_chatbot_data",
repo_type="dataset",
clone_from="cjzhi98/spsetia-chatbot",
token=True,
)
repo.git_pull()