tensorgirl commited on
Commit
f520f6e
1 Parent(s): c102673

Update utils.py

Browse files
Files changed (1) hide show
  1. utils.py +3 -1
utils.py CHANGED
@@ -80,6 +80,8 @@ def summary(input_json):
80
  long_text = filtering_results[1]
81
  long_text = long_text.lstrip()
82
  long_text = long_text.rstrip()
 
 
83
 
84
  url = 'https://www.bseindia.com/xml-data/corpfiling/AttachLive/'+ input_json['FileURL'].split('Pname=')[-1]
85
 
@@ -89,7 +91,7 @@ def summary(input_json):
89
 
90
  output["Stock Ticker"] = input_json['symbol']
91
 
92
- answer = "You are an financial expert" + callAzure(promptShort[id], long_text)
93
  output['Short Summary'] = answer
94
 
95
  prompt = "Answer in 1 word only. Financial SEO tag for this news article. Nothing more than that"
 
80
  long_text = filtering_results[1]
81
  long_text = long_text.lstrip()
82
  long_text = long_text.rstrip()
83
+
84
+ long_text = long_text[:6000]
85
 
86
  url = 'https://www.bseindia.com/xml-data/corpfiling/AttachLive/'+ input_json['FileURL'].split('Pname=')[-1]
87
 
 
91
 
92
  output["Stock Ticker"] = input_json['symbol']
93
 
94
+ answer = "You are an financial expert " + callAzure(promptShort[id], long_text) + "Do not exceed over 500 characters"
95
  output['Short Summary'] = answer
96
 
97
  prompt = "Answer in 1 word only. Financial SEO tag for this news article. Nothing more than that"