Spaces:
Build error
Build error
Update app.py
Browse files
app.py
CHANGED
@@ -45,7 +45,7 @@ set_state_if_absent("summaries", None)
|
|
45 |
document_store, summarizer, preprocessor = start_haystack()
|
46 |
|
47 |
st.markdown( """
|
48 |
-
This Summarization demo uses a [Haystack TransformerSummarizer node](https://haystack.deepset.ai/pipeline_nodes/summarizer). You can upload a PDF file, which will be converted to text with the [Haystack PDFtoTextConverter](https://haystack.deepset.ai/reference/file-converters#pdftotextconverter). In this demo, we produce 1 summary for the whole file you upload. So, the TransformerSummarizer treats the
|
49 |
""", unsafe_allow_html=True)
|
50 |
|
51 |
uploaded_file = st.file_uploader("Choose a PDF file", accept_multiple_files=False)
|
|
|
45 |
document_store, summarizer, preprocessor = start_haystack()
|
46 |
|
47 |
st.markdown( """
|
48 |
+
This Summarization demo uses a [Haystack TransformerSummarizer node](https://haystack.deepset.ai/pipeline_nodes/summarizer). You can upload a PDF file, which will be converted to text with the [Haystack PDFtoTextConverter](https://haystack.deepset.ai/reference/file-converters#pdftotextconverter). In this demo, we produce 1 summary for the whole file you upload. So, the TransformerSummarizer treats the whole thing as one string, which means along with the model limitations, PDFs that have a lot of unneeded text at the beginning produce poor results. For best results, upload a document that has minimal intro and tables at the top.
|
49 |
""", unsafe_allow_html=True)
|
50 |
|
51 |
uploaded_file = st.file_uploader("Choose a PDF file", accept_multiple_files=False)
|