File size: 420 Bytes
5462e7f |
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 |
from huggingface_hub import HfApi
from huggingface_hub import login
from dotenv import load_dotenv
import os
load_dotenv()
# Log in with your write-enabled token
login(token=os.getenv("HUGGING_FACE_TOKEN"))
api = HfApi()
api.upload_folder(
folder_path="./",
repo_id="Abhijith71/Abhijith",
repo_type="model",
ignore_patterns=[".env", "*.png", "*.jpg", "*.zip", "*.exe", "*.gitignore"]
)
|