Unescape HTML in the chat API examples
This commit is contained in:
parent
439dd0faab
commit
e8c0c4990d
2 changed files with 4 additions and 2 deletions
|
@ -1,3 +1,4 @@
|
|||
import html
|
||||
import json
|
||||
|
||||
import requests
|
||||
|
@ -72,7 +73,7 @@ def run(user_input, history):
|
|||
result = response.json()['results'][0]['history']
|
||||
print(json.dumps(result, indent=4))
|
||||
print()
|
||||
print(result['visible'][-1][1])
|
||||
print(html.unescape(result['visible'][-1][1]))
|
||||
|
||||
|
||||
if __name__ == '__main__':
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue