Unescape HTML in the chat API examples

This commit is contained in:
oobabooga 2023-08-28 19:42:03 -07:00
parent 439dd0faab
commit e8c0c4990d
2 changed files with 4 additions and 2 deletions

View file

@ -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__':