Download automatic.py from ysb123/repo: direct link, hf CLI and curl.
- Browser
- Download file 334 Bytes
-
https://huggingface.co/datasets/ysb123/repo/resolve/main/automatic.py
- Command line
-
hf download hf://datasets/ysb123/repo/automatic.py
-
curl -L -o automatic.py https://huggingface.co/datasets/ysb123/repo/resolve/main/automatic.py
334 Bytes
| import subprocess | |
| repo_url = 'https://github.com/vladmandic/automatic' | |
| dest_path = './Repo' | |
| # Run the git clone command | |
| try: | |
| subprocess.run(['git', 'clone', repo_url, dest_path], check=True) | |
| print('Clone operation completed successfully! 😄') | |
| except subprocess.CalledProcessError: | |
| print('Clone operation failed! 😞') | |