Spaces:
Runtime error
Runtime error
Update app.py
Browse files
app.py
CHANGED
@@ -232,6 +232,7 @@ elif selected_menu == "Summarize Document":
|
|
232 |
summary_text = pipeline_summarization(text, max_length=130, min_length=10, do_sample=False)
|
233 |
# Show output
|
234 |
st.write(summary_text[0]['summary_text'])
|
|
|
235 |
|
236 |
elif selected_menu == "Extract Entities":
|
237 |
paragraphs= get_paragraphs_for_entities()
|
@@ -241,6 +242,7 @@ elif selected_menu == "Extract Entities":
|
|
241 |
output = pipeline_ner (text)
|
242 |
entities_text =get_formatted_text_for_annotation(output)
|
243 |
annotated_text(*entities_text)
|
|
|
244 |
|
245 |
elif selected_menu == "Get Answers":
|
246 |
st.subheader('Question')
|
|
|
232 |
summary_text = pipeline_summarization(text, max_length=130, min_length=10, do_sample=False)
|
233 |
# Show output
|
234 |
st.write(summary_text[0]['summary_text'])
|
235 |
+
st.markdown("""---""")
|
236 |
|
237 |
elif selected_menu == "Extract Entities":
|
238 |
paragraphs= get_paragraphs_for_entities()
|
|
|
242 |
output = pipeline_ner (text)
|
243 |
entities_text =get_formatted_text_for_annotation(output)
|
244 |
annotated_text(*entities_text)
|
245 |
+
st.markdown("""---""")
|
246 |
|
247 |
elif selected_menu == "Get Answers":
|
248 |
st.subheader('Question')
|