hf-space-creator / deploy.py
Guillaume Raille
Add project configuration and deployment scripts
a3a85c9 unverified
raw
history blame contribute delete
490 Bytes
from huggingface_hub import HfApi, upload_folder
import os
# Space already exists, just upload
api = HfApi()
# Upload all files
upload_folder(
folder_path=".",
repo_id="grlll/hf-space-creator",
repo_type="space",
ignore_patterns=["*.pyc", "__pycache__", ".git*", "deploy.py", "main.py", ".python-version", "uv.lock", "pyproject.toml", ".mcp.json"]
)
print("Space deployed successfully!")
print(f"Visit your space at: https://huggingface.co/spaces/grlll/hf-space-creator")