import subprocess try: subprocess.run( ["python3", "-m", "llama_cpp.server", "--model", "models/model.gguf", "--port", "7860"], check=True ) print(True) except subprocess.CalledProcessError: print(False)