Tuana commited on
Commit
762970d
1 Parent(s): 58c1223
Files changed (1) hide show
  1. app.py +2 -0
app.py CHANGED
@@ -44,6 +44,8 @@ def set_state_if_absent(key, value):
44
  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 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)
 
44
  set_state_if_absent("summaries", None)
45
  document_store, summarizer, preprocessor = start_haystack()
46
 
47
+ st.title('TL;DR with Haystack')
48
+
49
  st.markdown( """
50
  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.
51
  """, unsafe_allow_html=True)