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="spsetia_chatbot_data", | |
repo_type="dataset", | |
clone_from="cjzhi98/spsetia-chatbot", | |
token=True, | |
) | |
repo.git_pull() | |