-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathtest_json.py
9 lines (7 loc) · 3.11 KB
/
test_json.py
1
2
3
4
5
6
7
8
9
import json
json_text='''
{'model_id': 'google/flan-ul2', 'created_at': '2023-06-20T18:11:32.920Z', 'results': [{'generated_text': 'Ali, Alex, and Erin decided to go with choice 2 for the design solution because it will take less time...................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................', 'generated_token_count': 200, 'input_token_count': 443, 'stop_reason': 'MAX_TOKENS'}]}
'''
print(type(json_text))
response=json_text.json()
print(type(response))