Spaces:
Build error
Build error
Update app.py
Browse files
app.py
CHANGED
@@ -36,8 +36,9 @@ def summarize(files):
|
|
36 |
pdf_to_document_store(files)
|
37 |
summaries = summarizer.predict(documents=document_store.get_all_documents(), generate_single_summary=True)
|
38 |
st.write('Summary')
|
39 |
-
|
40 |
-
|
|
|
41 |
document_store, summarizer, preprocessor = start_haystack()
|
42 |
|
43 |
uploaded_files = st.file_uploader("Choose PDF files", accept_multiple_files=True)
|
|
|
36 |
pdf_to_document_store(files)
|
37 |
summaries = summarizer.predict(documents=document_store.get_all_documents(), generate_single_summary=True)
|
38 |
st.write('Summary')
|
39 |
+
for summary in summaries:
|
40 |
+
st.write(summary.content)
|
41 |
+
|
42 |
document_store, summarizer, preprocessor = start_haystack()
|
43 |
|
44 |
uploaded_files = st.file_uploader("Choose PDF files", accept_multiple_files=True)
|