import os os.system("git clone https://github.com/oobabooga/text-generation-webui.git") os.chdir("text-generation-webui") os.system("pip install -r requirements.txt") with open("input.txt", "w") as f: f.write("N\n") os.system("./start_linux.sh < input.txt")