From e58bfff8bb1d8bb682e5e5d255d029eb8780ba74 Mon Sep 17 00:00:00 2001 From: Junlin Liu Date: Sun, 18 Jun 2023 11:44:35 +0000 Subject: [PATCH] fix execute --- gpt_engineer/steps.py | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/gpt_engineer/steps.py b/gpt_engineer/steps.py index 88115da..897087f 100644 --- a/gpt_engineer/steps.py +++ b/gpt_engineer/steps.py @@ -143,10 +143,11 @@ def execute_entrypoint(ai, dbs): print() print(command) print() - print('If yes, press enter. If no, type "no"') + print('If yes, type "yes". If no, press enter.') print() - if input() == "no": + if input().lower() != "yes": print("Ok, not executing the code.") + return [] print("Executing the code...") print() subprocess.run("bash run.sh", shell=True, cwd=dbs.workspace.path)