Spaces:
Sleeping
Sleeping
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() | |