ecommerce_product / dataset_loader.py
ghengx
init
7b84eb4
raw
history blame contribute delete
333 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/cobyhaus",
token=True
)
repo.git_pull()
load_dataset()