1
0
Fork 0

Merge pull request #284 from ahmedazizkhelifi/fix-readme-examples

fix you README
This commit is contained in:
t.me/xtekky 2023-04-30 12:19:29 +01:00 committed by GitHub
commit 22b9b1fc69
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -10,7 +10,7 @@ response = you.Completion.create(
detailed=True,
include_links=True, )
print(response)
print(response.dict())
# {
# "response": "...",
@ -32,7 +32,7 @@ while True:
prompt=prompt,
chat=chat)
print("Bot:", response["response"])
print("Bot:", response.text)
chat.append({"question": prompt, "answer": response["response"]})
chat.append({"question": prompt, "answer": response.text})
```