Update app.py
Browse files
app.py
CHANGED
@@ -464,7 +464,6 @@ if summarize:
|
|
464 |
|
465 |
with st.spinner("Calculating and matching entities, this takes a few seconds..."):
|
466 |
entity_match_html = highlight_entities(text_to_summarize,summarized_text)
|
467 |
-
st.subheader("Summarized text with matched entities in Green and mismatched entities in Red relative to the Original Text")
|
468 |
st.markdown("####")
|
469 |
print(entity_match_html)
|
470 |
|
@@ -472,18 +471,21 @@ if summarize:
|
|
472 |
|
473 |
# view summarized text (expander)
|
474 |
st.markdown(f"Article title: {article_title}")
|
475 |
-
|
476 |
-
st.markdown("####")
|
477 |
|
478 |
st.session_state.summ_area = summarized_text
|
479 |
|
|
|
|
|
480 |
summarized_text = st.text_area(
|
481 |
-
label='Summarized Text with no Entity Matching',
|
482 |
placeholder="Full summarized text will be displayed here..",
|
483 |
height=250,
|
484 |
key='summ_area'
|
485 |
)
|
486 |
-
|
|
|
|
|
|
|
|
|
487 |
st.write(entity_match_html, unsafe_allow_html=True)
|
488 |
|
489 |
st.markdown("####")
|
|
|
464 |
|
465 |
with st.spinner("Calculating and matching entities, this takes a few seconds..."):
|
466 |
entity_match_html = highlight_entities(text_to_summarize,summarized_text)
|
|
|
467 |
st.markdown("####")
|
468 |
print(entity_match_html)
|
469 |
|
|
|
471 |
|
472 |
# view summarized text (expander)
|
473 |
st.markdown(f"Article title: {article_title}")
|
|
|
|
|
474 |
|
475 |
st.session_state.summ_area = summarized_text
|
476 |
|
477 |
+
st.subheader('Summarized Text with no Entity Matching')
|
478 |
+
|
479 |
summarized_text = st.text_area(
|
|
|
480 |
placeholder="Full summarized text will be displayed here..",
|
481 |
height=250,
|
482 |
key='summ_area'
|
483 |
)
|
484 |
+
|
485 |
+
st.markdown("####")
|
486 |
+
|
487 |
+
st.subheader("Summarized text with matched entities in Green and mismatched entities in Red relative to the Original Text")
|
488 |
+
|
489 |
st.write(entity_match_html, unsafe_allow_html=True)
|
490 |
|
491 |
st.markdown("####")
|