letxinet / hf_upload.py
C2MV's picture
fix: downgrade gradio to 4.39.0 to avoid pydantic schema bug
3a77bb0 verified
Raw
History Blame Contribute Delete
327 Bytes
from huggingface_hub import HfApi
api = HfApi()
api.upload_folder(
folder_path=".",
repo_id="C2MV/letxinet",
repo_type="space",
ignore_patterns=["venv/*", ".env", ".git/*", "*/__pycache__/*", "*.db"],
commit_message="fix: downgrade gradio to 4.39.0 to avoid pydantic schema bug"
)
print("Upload complete!")