rdose commited on
Commit
7493b28
·
1 Parent(s): a56b963

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -1
app.py CHANGED
@@ -353,7 +353,7 @@ def inference(input_batch,isurl,use_archive,filt_companies_topic,limit_companies
353
  continue
354
  dfo = pd.concat( [dfo, df.loc[[idx]].assign(company=ner[0], sector=ner[1], symbol=ner[2])], join='outer', ignore_index=True) #axis=0
355
  print("[i] Pandas output shape:",dfo.shape)
356
- return dfo #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
357
 
358
  title = "ESG API Demo"
359
  description = """This is a demonstration of the full ESG pipeline backend where given a list of URL (english, news) the news contents are extracted, using extractnet, and fed to three models:
 
353
  continue
354
  dfo = pd.concat( [dfo, df.loc[[idx]].assign(company=ner[0], sector=ner[1], symbol=ner[2])], join='outer', ignore_index=True) #axis=0
355
  print("[i] Pandas output shape:",dfo.shape)
356
+ return dfo.drop_duplicates()
357
 
358
  title = "ESG API Demo"
359
  description = """This is a demonstration of the full ESG pipeline backend where given a list of URL (english, news) the news contents are extracted, using extractnet, and fed to three models: