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