Spaces:
Runtime error
Runtime error
Download main.py from arpy8/remote-fooocus: direct link, hf CLI and curl.
- Browser
- Download file 365 Bytes
-
https://huggingface.co/spaces/arpy8/remote-fooocus/resolve/main/main.py
- Command line
-
hf download hf://spaces/arpy8/remote-fooocus/main.py
-
curl -L -o main.py https://huggingface.co/spaces/arpy8/remote-fooocus/resolve/main/main.py
365 Bytes
| import subprocess | |
| commands = [ | |
| "pip install pygit2==1.12.2", | |
| "cd /content", | |
| "git clone https://github.com/lllyasviel/Fooocus.git", | |
| "cd /content/Fooocus", | |
| "python entry_with_update.py --share", | |
| ] | |
| for cmd in commands: | |
| print(f"Executing command '{cmd}'...") | |
| subprocess.run(cmd, shell=True) | |
| print(f"Command '{cmd}' has been executed.") |