Merge pull request #231 from naa7/patch-3

added an if-statement for ending loop
pull/243/head
t.me/xtekky 1 year ago committed by GitHub
commit d717511236
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

@ -25,7 +25,8 @@ chat = []
while True:
prompt = input("You: ")
if prompt == 'q':
break
response = you.Completion.create(
prompt=prompt,
chat=chat)
@ -33,4 +34,4 @@ while True:
print("Bot:", response["response"])
chat.append({"question": prompt, "answer": response["response"]})
```
```

Loading…
Cancel
Save