rdose commited on
Commit
b1a1abe
·
1 Parent(s): 0ce9cd3

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -1
app.py CHANGED
@@ -304,7 +304,7 @@ def inference(input_batch,isurl,use_archive,limit_companies=10):
304
  for idx in range(len(df.index)):
305
  if ner_labels[idx]: #not empty
306
  for ner in ner_labels[idx]:
307
- df = pd.concat(df.loc[[idx]].assign(company=ner[0], sector=ner[1]), axis=0, join='outer', ignore_index=True)
308
 
309
  return df #ner_labels, {'E':float(prob_outs[0]),"S":float(prob_outs[1]),"G":float(prob_outs[2])},{sentiment['label']:float(sentiment['score'])},"**Summary:**\n\n" + summary
310
 
 
304
  for idx in range(len(df.index)):
305
  if ner_labels[idx]: #not empty
306
  for ner in ner_labels[idx]:
307
+ df = pd.concat(df,df.loc[[idx]].assign(company=ner[0], sector=ner[1]), axis=0, join='outer', ignore_index=True)
308
 
309
  return df #ner_labels, {'E':float(prob_outs[0]),"S":float(prob_outs[1]),"G":float(prob_outs[2])},{sentiment['label']:float(sentiment['score'])},"**Summary:**\n\n" + summary
310