import os from huggingface_hub import Repository, login if not os.path.isdir('core'): login(token=os.environ['HF_TOKEN']) repo = Repository( local_dir="core", repo_type="dataset", clone_from=os.environ['REPO_URL'], token=True ) repo.git_pull() from core.Agent import QAAgent QAAgent().chat_ui()