Skip to content

Commit

Permalink
Reduce unecessary print
Browse files Browse the repository at this point in the history
  • Loading branch information
AntonOsika committed Oct 7, 2023
1 parent 1376a8d commit c58a37c
Showing 1 changed file with 2 additions and 4 deletions.
6 changes: 2 additions & 4 deletions gpt_engineer/core/steps.py
Original file line number Diff line number Diff line change
Expand Up @@ -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...")
Expand Down

0 comments on commit c58a37c

Please sign in to comment.