Spaces:
Build error
Build error
Update app.py
Browse files
app.py
CHANGED
@@ -33,8 +33,8 @@ def summarize(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=
|
38 |
outputs="text",
|
39 |
title=title,
|
40 |
theme="default")
|
|
|
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="multiple", type="file", label="Upload some PDFs"),
|
38 |
outputs="text",
|
39 |
title=title,
|
40 |
theme="default")
|