Spaces:
Build error
Build error
Update app.py
Browse files
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
|
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:
|