Spaces:
Sleeping
Sleeping
Download commit.py from VJ24/ai-observability: direct link, hf CLI and curl.
- Browser
- Download file 338 Bytes
-
https://huggingface.co/spaces/VJ24/ai-observability/resolve/main/commit.py
- Command line
-
hf download hf://spaces/VJ24/ai-observability/commit.py
-
curl -L -o commit.py https://huggingface.co/spaces/VJ24/ai-observability/resolve/main/commit.py
338 Bytes
| import subprocess | |
| try: | |
| subprocess.check_call( | |
| [ | |
| "git", | |
| "commit", | |
| "-m", | |
| "feat(observability): Integrate core components"]) | |
| print("Commit successful") | |
| subprocess.check_call(["git", "push"]) | |
| print("Push successful") | |
| except Exception as e: | |
| print("Error:", str(e)) | |