Merge pull request #231 from naa7/patch-3
added an if-statement for ending loop
This commit is contained in:
commit
d717511236
1 changed files with 3 additions and 2 deletions
|
@ -25,7 +25,8 @@ chat = []
|
||||||
|
|
||||||
while True:
|
while True:
|
||||||
prompt = input("You: ")
|
prompt = input("You: ")
|
||||||
|
if prompt == 'q':
|
||||||
|
break
|
||||||
response = you.Completion.create(
|
response = you.Completion.create(
|
||||||
prompt=prompt,
|
prompt=prompt,
|
||||||
chat=chat)
|
chat=chat)
|
||||||
|
|
Loading…
Reference in a new issue