Spaces:
Sleeping
Sleeping
tensorgirl
commited on
Update utils.py
Browse files
utils.py
CHANGED
@@ -106,11 +106,11 @@ def summary(input_json):
|
|
106 |
idx = -2
|
107 |
output['Short Summary'] = answer[idx+2:]
|
108 |
|
109 |
-
prompt = "
|
110 |
answer = callAzure(prompt, output['Short Summary'])
|
111 |
output['Tag'] = answer
|
112 |
|
113 |
-
prompt = "
|
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 |
|