Spaces:
Build error
Build error
Update app.py
Browse files
app.py
CHANGED
@@ -34,7 +34,7 @@ def pdf_to_document_store(pdf_file):
|
|
34 |
|
35 |
def summarize(file):
|
36 |
pdf_to_document_store(file)
|
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)
|
|
|
34 |
|
35 |
def summarize(file):
|
36 |
pdf_to_document_store(file)
|
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)
|