Spaces:
Sleeping
Sleeping
tensorgirl
commited on
Update utils.py
Browse files
utils.py
CHANGED
@@ -87,10 +87,10 @@ def summary(input_json):
|
|
87 |
|
88 |
output["Stock Ticker"] = input_json['symbol']
|
89 |
|
90 |
-
answer = callAzure(promptShort[id], long_text)
|
91 |
output['Short Summary'] = answer
|
92 |
|
93 |
-
answer = callAzure(promptLong[id] + " The Summary should be around 2000 characters. Please make sure it is not smaller than that. Do not truncate the final answers", long_text)
|
94 |
output['Long summary'] = answer
|
95 |
|
96 |
prompt = "Answer in 1 word only. Financial SEO tag for this news article"
|
|
|
87 |
|
88 |
output["Stock Ticker"] = input_json['symbol']
|
89 |
|
90 |
+
answer = "You are an financial expert" + callAzure(promptShort[id], long_text)
|
91 |
output['Short Summary'] = answer
|
92 |
|
93 |
+
answer = "You are an financial expert" + callAzure(promptLong[id] + " The Summary should be around 2000 characters. Please make sure it is not smaller than that. Do not truncate the final answers", long_text)
|
94 |
output['Long summary'] = answer
|
95 |
|
96 |
prompt = "Answer in 1 word only. Financial SEO tag for this news article"
|