File size: 456 Bytes
d18b988
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
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'
)