Spaces:
Build error
Build error
AhmedTaha012
commited on
Commit
•
f138fe5
1
Parent(s):
304fcfc
Update app.py
Browse files
app.py
CHANGED
@@ -299,16 +299,19 @@ if st.button("Analyze"):
|
|
299 |
expences=[x["expense"] for x in ner_result if "expense" in x]
|
300 |
for idx in range(len(revenues)):
|
301 |
st.text_input(f'Revenue:{idx+1}', revenues[idx])
|
|
|
302 |
annotated_text(get_annotated_text(getSentence(sentences,revenues[idx]),str(revenues[idx]),"Revenue"))
|
303 |
-
|
304 |
for idx in range(len(profits)):
|
305 |
st.text_input(f'Profit:{idx+1}', profits[idx])
|
|
|
306 |
annotated_text(get_annotated_text(getSentence(sentences,profits[idx]),str(profits[idx]),"Profit"))
|
307 |
-
|
308 |
for idx in range(len(expences)):
|
309 |
st.text_input(f'Expences:{idx+1}', expences[idx])
|
|
|
310 |
annotated_text(get_annotated_text(getSentence(sentences,expences[idx]),str(expences[idx]),"Expences"))
|
311 |
-
|
312 |
|
313 |
st.subheader("Investment Recommendation", divider='rainbow')
|
314 |
profitAmount=sum([convert_amount_to_number(x) for x in profits])
|
|
|
299 |
expences=[x["expense"] for x in ner_result if "expense" in x]
|
300 |
for idx in range(len(revenues)):
|
301 |
st.text_input(f'Revenue:{idx+1}', revenues[idx])
|
302 |
+
st.text_input(f'Revenue-Sentence:{idx+1}', getSentence(sentences,revenues[idx]))
|
303 |
annotated_text(get_annotated_text(getSentence(sentences,revenues[idx]),str(revenues[idx]),"Revenue"))
|
304 |
+
|
305 |
for idx in range(len(profits)):
|
306 |
st.text_input(f'Profit:{idx+1}', profits[idx])
|
307 |
+
st.text_input(f'Profit-Sentence:{idx+1}', getSentence(sentences,profits[idx]))
|
308 |
annotated_text(get_annotated_text(getSentence(sentences,profits[idx]),str(profits[idx]),"Profit"))
|
309 |
+
|
310 |
for idx in range(len(expences)):
|
311 |
st.text_input(f'Expences:{idx+1}', expences[idx])
|
312 |
+
st.text_input(f'Expences-Sentences:{idx+1}', getSentence(sentences,expences[idx]))
|
313 |
annotated_text(get_annotated_text(getSentence(sentences,expences[idx]),str(expences[idx]),"Expences"))
|
314 |
+
|
315 |
|
316 |
st.subheader("Investment Recommendation", divider='rainbow')
|
317 |
profitAmount=sum([convert_amount_to_number(x) for x in profits])
|