MetaRAG_Cross-Issue_OSSQA / upload_to_huggingface.py
MapleBi's picture
Upload with huggingface_hub
3e558d8 verified
Raw
History Blame Contribute Delete
366 Bytes
from pathlib import Path
from huggingface_hub import login, upload_folder
REPO_ID = "MapleBi/MetaRAG_Cross-Issue_OSSQA"
DATASET_FOLDER = Path(__file__).resolve().parent
def main() -> None:
login()
upload_folder(
folder_path=str(DATASET_FOLDER),
repo_id=REPO_ID,
repo_type="dataset",
)
if __name__ == "__main__":
main()