Merge pull request #284 from ahmedazizkhelifi/fix-readme-examples
fix you README
This commit is contained in:
commit
22b9b1fc69
1 changed files with 3 additions and 3 deletions
|
@ -10,7 +10,7 @@ response = you.Completion.create(
|
||||||
detailed=True,
|
detailed=True,
|
||||||
include_links=True, )
|
include_links=True, )
|
||||||
|
|
||||||
print(response)
|
print(response.dict())
|
||||||
|
|
||||||
# {
|
# {
|
||||||
# "response": "...",
|
# "response": "...",
|
||||||
|
@ -32,7 +32,7 @@ while True:
|
||||||
prompt=prompt,
|
prompt=prompt,
|
||||||
chat=chat)
|
chat=chat)
|
||||||
|
|
||||||
print("Bot:", response["response"])
|
print("Bot:", response.text)
|
||||||
|
|
||||||
chat.append({"question": prompt, "answer": response["response"]})
|
chat.append({"question": prompt, "answer": response.text})
|
||||||
```
|
```
|
||||||
|
|
Loading…
Reference in a new issue