From c58a37c233e712d3e77dc7178087f4d7782c8dee Mon Sep 17 00:00:00 2001 From: Anton Osika Date: Sat, 7 Oct 2023 13:02:17 -0700 Subject: [PATCH] Reduce unecessary print --- gpt_engineer/core/steps.py | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/gpt_engineer/core/steps.py b/gpt_engineer/core/steps.py index e87b8d6174..5f0e7d6d62 100644 --- a/gpt_engineer/core/steps.py +++ b/gpt_engineer/core/steps.py @@ -317,16 +317,14 @@ def execute_entrypoint(ai: AI, dbs: DBs) -> List[dict]: print() print( colored( - "Do you want to execute this code? (y/n)", + "Do you want to execute this code? (Y/n)", "red", ) ) print() print(command) print() - print("To execute, you can also press enter.") - print() - if input() not in ["", "y", "yes"]: + if input().lower() not in ["", "y", "yes"]: print("Ok, not executing the code.") return [] print("Executing the code...")