added an if-statement for ending loop
Instead of pressing Ctrl+c to end program. It is easier and less messy for ending chatbot
This commit is contained in:
@@ -25,7 +25,8 @@ chat = []
|
||||
|
||||
while True:
|
||||
prompt = input("You: ")
|
||||
|
||||
if prompt == 'q':
|
||||
break
|
||||
response = you.Completion.create(
|
||||
prompt=prompt,
|
||||
chat=chat)
|
||||
|
||||
Reference in New Issue
Block a user