import os | |
from huggingface_hub import HfApi | |
from dotenv import load_dotenv | |
load_dotenv() | |
HF_TOKEN = os.getenv("HF_TOKEN") | |
api = HfApi(token=HF_TOKEN) | |
print("Starting File upload") | |
# Replace with your local folder path and desired repository ID | |
api.upload_large_folder( | |
folder_path=".", # Path to your local folder | |
repo_id="AdithyaSK/RAG_Eval", # Your Hugging Face repo ID | |
repo_type="dataset", # Specify 'dataset', 'model', or 'space' | |
) | |