import os # Change directory to Fooocus os.chdir("Fooocus-main") # Install dependencies os.system("pip install pygit2==1.15.1") # Run Fooocus os.system("python entry_with_update.py --always-cpu")