tensorgirl commited on
Commit
d2f3072
1 Parent(s): 9265cfc

Update utils.py

Browse files
Files changed (1) hide show
  1. utils.py +2 -0
utils.py CHANGED
@@ -10,6 +10,7 @@ from transformers import AutoTokenizer, AutoModelForSequenceClassification
10
  from transformers import pipeline
11
  from openai import OpenAI
12
  from groq import Groq
 
13
 
14
  #openai_key = "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"
15
  #client = OpenAI(api_key = openai_key)
@@ -96,6 +97,7 @@ def summary(input_json):
96
  prompt = "Answer in one word the sentiment of this News out of Positive, Negative or Neutral {}"
97
  output['sentiment'] = call(prompt, output['web'])
98
 
 
99
  # response = client.images.generate(
100
  # model="dall-e-3",
101
  # prompt=headline.text,
 
10
  from transformers import pipeline
11
  from openai import OpenAI
12
  from groq import Groq
13
+ import time
14
 
15
  #openai_key = "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"
16
  #client = OpenAI(api_key = openai_key)
 
97
  prompt = "Answer in one word the sentiment of this News out of Positive, Negative or Neutral {}"
98
  output['sentiment'] = call(prompt, output['web'])
99
 
100
+ time.sleep(60)
101
  # response = client.images.generate(
102
  # model="dall-e-3",
103
  # prompt=headline.text,