Skip to content

Commit d6af03f

Browse files
authored
Update prompt-engineering.py
1 parent fa7fc31 commit d6af03f

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

Labfiles/03-prompt-engineering/Python/prompt-engineering.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -23,12 +23,12 @@ async def main():
2323

2424
while True:
2525
# Pause the app to allow the user to enter the system prompt
26-
print("------------------\nPausing the app to allow you to change the system prompt.\nPress anything then enter to continue...")
26+
print("------------------\nPausing the app to allow you to change the system prompt.\nPress enter to continue...")
2727
input()
2828

2929
# Read in system message and prompt for user message
3030
system_text = open(file="system.txt", encoding="utf8").read().strip()
31-
user_text = input("Enter user message: ")
31+
user_text = input("Enter user message, or 'quit' to exit: ")
3232
if user_text.lower() == 'quit' or system_text.lower() == 'quit':
3333
print('Exiting program...')
3434
break
@@ -53,4 +53,4 @@ async def call_openai_model(system_message, user_message, model, client):
5353
print("Response:\n" + response.choices[0].message.content + "\n")
5454

5555
if __name__ == '__main__':
56-
asyncio.run(main())
56+
asyncio.run(main())

0 commit comments

Comments
 (0)