LLM_Comparison_Tool / upload_hf.py
NeonClary
LLM Comparison Tool: deploy snapshot for Hugging Face Space (orphan history)
08b0543
raw
history blame contribute delete
445 Bytes
"""One-shot upload of project files to HuggingFace Space."""
from huggingface_hub import HfApi
api = HfApi()
api.upload_folder(
folder_path=".",
repo_id="neongeckocom/LLM_Comparison_Tool",
repo_type="space",
ignore_patterns=[
".git/*", ".env", "node_modules/*", "__pycache__/*",
"*.pyc", "upload_hf.py", ".gitattributes",
"frontend/node_modules/*", "frontend/build/*",
],
)
print("Upload complete!")