Spaces:
Build error
Build error
Commit
·
9add4ca
1
Parent(s):
ab1095f
Update app.py
Browse files
app.py
CHANGED
@@ -291,13 +291,13 @@ if st.button("Analyze"):
|
|
291 |
revenues=[x["revenue"] for x in ner_result if "revenue" in x]
|
292 |
expences=[x["expense"] for x in ner_result if "expense" in x]
|
293 |
for idx in range(len(revenues)):
|
294 |
-
|
295 |
-
|
296 |
for idx in range(len(profits)):
|
297 |
-
|
298 |
st.text_input(f'Sentences', getSentence(sentences,profits[idx]))
|
299 |
for idx in range(len(expences)):
|
300 |
-
|
301 |
st.text_input(f'Sentences', getSentence(sentences,expences[idx]))
|
302 |
|
303 |
|
|
|
291 |
revenues=[x["revenue"] for x in ner_result if "revenue" in x]
|
292 |
expences=[x["expense"] for x in ner_result if "expense" in x]
|
293 |
for idx in range(len(revenues)):
|
294 |
+
st.text_input(f'Revenue:{idx+1}', revenues[idx])
|
295 |
+
st.text_input(f'Sentences', getSentence(sentences,revenues[idx]))
|
296 |
for idx in range(len(profits)):
|
297 |
+
st.text_input(f'Profit:{idx+1}', profits[idx])
|
298 |
st.text_input(f'Sentences', getSentence(sentences,profits[idx]))
|
299 |
for idx in range(len(expences)):
|
300 |
+
st.text_input(f'Expences:{idx+1}', expences[idx])
|
301 |
st.text_input(f'Sentences', getSentence(sentences,expences[idx]))
|
302 |
|
303 |
|