ktongue/docker_container / SGAE /upload_cleanup.py
download
raw
605 Bytes
from huggingface_hub import HfApi, CommitOperationAdd, CommitOperationDelete
api = HfApi(token="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")
operations = [
CommitOperationAdd(path_in_repo="entrypoint.sh", path_or_fileobj="/root/SGAE/entrypoint.sh"),
CommitOperationAdd(path_in_repo="routes/web.php", path_or_fileobj="/root/SGAE/routes/web.php"),
CommitOperationDelete(path_in_repo="public/diag.php"),
]
api.create_commit(
repo_id="ktongue/sgae-app",
repo_type="space",
operations=operations,
commit_message="Production cleanup: disable debug, remove diag page",
)
print("Done!")

Xet Storage Details

Size:
605 Bytes
·
Xet hash:
54ce73f98aed556c5e9769e8c4f50c4487b0bb8ea84bcd6c8c139c8dddfe5f3e

Xet efficiently stores files, intelligently splitting them into unique chunks and accelerating uploads and downloads. More info.