tensorgirl commited on
Commit
3d86e91
·
verified ·
1 Parent(s): 382488b

Update utils.py

Browse files
Files changed (1) hide show
  1. utils.py +2 -1
utils.py CHANGED
@@ -127,7 +127,8 @@ def summary(input_json):
127
  max_tokens=2000,
128
  )
129
 
130
- output['Long summary'] = json.loads(completion.choices[0].message)['content']
 
131
  # response = client.images.generate(
132
  # model="dall-e-3",
133
  # prompt=headline.text,
 
127
  max_tokens=2000,
128
  )
129
 
130
+ output['Long summary'] = completion.choices[0].message.content
131
+
132
  # response = client.images.generate(
133
  # model="dall-e-3",
134
  # prompt=headline.text,