Spaces:
Sleeping
Sleeping
Download commit_fixes.py from VJ24/ai-observability: direct link, hf CLI and curl.
- Browser
- Download file 271 Bytes
-
https://huggingface.co/spaces/VJ24/ai-observability/resolve/main/commit_fixes.py
- Command line
-
hf download hf://spaces/VJ24/ai-observability/commit_fixes.py
-
curl -L -o commit_fixes.py https://huggingface.co/spaces/VJ24/ai-observability/resolve/main/commit_fixes.py
271 Bytes
| import subprocess | |
| try: | |
| subprocess.check_call(["git", "add", "."]) | |
| print("Add successful") | |
| subprocess.check_call( | |
| ["git", "commit", "-m", "fix: flake8 linting errors"]) | |
| print("Commit successful") | |
| except Exception as e: | |
| print("Error:", str(e)) | |