Spaces:
Sleeping
Sleeping
Update utils.py
Browse files
utils.py
CHANGED
@@ -99,7 +99,7 @@ def summary(input_json):
|
|
99 |
idx = -2
|
100 |
output['Short Summary'] = answer[idx+2:]
|
101 |
|
102 |
-
answer = callAzure("Make sure the following summary of a news article is not more than 80 words. Rewrite it and make it below
|
103 |
try:
|
104 |
idx = answer.index("\n")
|
105 |
except:
|
|
|
99 |
idx = -2
|
100 |
output['Short Summary'] = answer[idx+2:]
|
101 |
|
102 |
+
answer = callAzure("Make sure the following summary of a news article is not more than 80 words. Rewrite it and make it below 80 words ", output['Short Summary'])
|
103 |
try:
|
104 |
idx = answer.index("\n")
|
105 |
except:
|