tensorgirl commited on
Commit
a9b7a35
1 Parent(s): db9cf27

Update utils.py

Browse files
Files changed (1) hide show
  1. utils.py +8 -8
utils.py CHANGED
@@ -79,13 +79,13 @@ def summary(input_json):
79
  #output['sentiment'] = senti[0]['label']
80
  senti = model.generate_content("Answer in one word the sentiment of this News out of Positive, Negative or Neutral {}".format(web.text))
81
  output['sentiment'] = senti.text
82
- response = client.images.generate(
83
- model="dall-e-3",
84
- prompt=headline.text,
85
- size="1024x1024",
86
- quality="standard",
87
- n=1
88
- )
89
- output["image_url"] = response.data[0].url
90
 
91
  return output
 
79
  #output['sentiment'] = senti[0]['label']
80
  senti = model.generate_content("Answer in one word the sentiment of this News out of Positive, Negative or Neutral {}".format(web.text))
81
  output['sentiment'] = senti.text
82
+ # response = client.images.generate(
83
+ # model="dall-e-3",
84
+ # prompt=headline.text,
85
+ # size="1024x1024",
86
+ # quality="standard",
87
+ # n=1
88
+ # )
89
+ # output["image_url"] = response.data[0].url
90
 
91
  return output