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