Spaces:
Build error
Build error
Update app.py
Browse files
app.py
CHANGED
@@ -26,12 +26,13 @@ def pdf_to_document_store(pdf_files):
|
|
26 |
|
27 |
def summarize(files):
|
28 |
print('Got files')
|
|
|
29 |
pdf_to_document_store(files)
|
30 |
return document_store.get_document_count()
|
31 |
|
32 |
title = "Summarize one or more PDFs with a Haystack Summariser pipeline"
|
33 |
iface = gr.Interface(fn=summarize,
|
34 |
-
inputs=[gr.inputs.File(file_count="
|
35 |
outputs="text",
|
36 |
title=title,
|
37 |
theme="default")
|
|
|
26 |
|
27 |
def summarize(files):
|
28 |
print('Got files')
|
29 |
+
print(repr(files))
|
30 |
pdf_to_document_store(files)
|
31 |
return document_store.get_document_count()
|
32 |
|
33 |
title = "Summarize one or more PDFs with a Haystack Summariser pipeline"
|
34 |
iface = gr.Interface(fn=summarize,
|
35 |
+
inputs=[gr.inputs.File(file_count="multiple",type="file", label="Upload a pdf")],
|
36 |
outputs="text",
|
37 |
title=title,
|
38 |
theme="default")
|