tensorgirl commited on
Commit
39cf970
1 Parent(s): 471f94e

Update utils.py

Browse files
Files changed (1) hide show
  1. utils.py +2 -2
utils.py CHANGED
@@ -106,11 +106,11 @@ def summary(input_json):
106
  idx = -2
107
  output['Short Summary'] = answer[idx+2:]
108
 
109
- prompt = "Answer in 1 word only. Financial SEO tag for this news article. Nothing more than that"
110
  answer = callAzure(prompt, output['Short Summary'])
111
  output['Tag'] = answer
112
 
113
- prompt = "Answer in single sentence. A headline for this News Article. Nothing more than that"
114
  answer = callAzure(prompt, output['Short Summary'])
115
  output['Headline'] = answer
116
 
 
106
  idx = -2
107
  output['Short Summary'] = answer[idx+2:]
108
 
109
+ prompt = "Provide the main topic of the news article strictly as a tag, using only one or two words, with only the first word capitalized and the rest in lowercase. No additional text or explanation."
110
  answer = callAzure(prompt, output['Short Summary'])
111
  output['Tag'] = answer
112
 
113
+ prompt = "Generate a precise headline for the news article that includes the name of the company. Be very careful about correctly representing any financial figures mentioned in lakhs and crores. Provide only the headline, with no additional text or explanation."
114
  answer = callAzure(prompt, output['Short Summary'])
115
  output['Headline'] = answer
116