Spaces:
Build error
Build error
Update app.py
Browse files
app.py
CHANGED
@@ -352,8 +352,8 @@ def inference(input_batch,isurl,use_archive,filt_companies_topic,limit_companies
|
|
352 |
if news_sectors[idx] != ner[1]:
|
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 |
-
|
356 |
-
|
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:
|
|
|
352 |
if news_sectors[idx] != ner[1]:
|
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:
|