Skip to content

Commit

Permalink
Code Llama
Browse files Browse the repository at this point in the history
  • Loading branch information
KillianLucas committed Aug 28, 2023
1 parent 4211ad6 commit 54a2b9c
Showing 1 changed file with 8 additions and 5 deletions.
13 changes: 8 additions & 5 deletions interpreter/llama_2.py
Original file line number Diff line number Diff line change
Expand Up @@ -176,8 +176,11 @@ def supports_metal():
return llama_2

def confirm_action(message):
# Print message with newlines on either side (aesthetic choice)
print('', Markdown(f"{message} (y/n)"), '')
response = input().strip().lower()
print('') # <- Aesthetic choice
return response == 'y'
question = [
inquirer.Confirm('confirm',
message=message,
default=True),
]

answers = inquirer.prompt(question)
return answers['confirm']

0 comments on commit 54a2b9c

Please sign in to comment.