Unique_Fire_Chatbot / dataset_loader.py
gheng's picture
Update dataset_loader.py
b55de11 verified
raw
history blame
381 Bytes
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='[email protected]'
)
repo.git_pull()
load_dataset()