Andrei Shadrikov
commited on
Commit
·
e7740fc
1
Parent(s):
4d9d146
wrong fix (fp)
Browse files
app.py
CHANGED
|
@@ -75,16 +75,16 @@ def process_image_and_text(doc, text_query):
|
|
| 75 |
|
| 76 |
text_interface = gr.Interface(
|
| 77 |
fn=extract_text,
|
| 78 |
-
inputs=
|
| 79 |
-
outputs=
|
| 80 |
title="PDF extractor",
|
| 81 |
description="Extracts text from the PDF container."
|
| 82 |
)
|
| 83 |
|
| 84 |
pdf_interface = gr.Interface(
|
| 85 |
fn=process_pdf,
|
| 86 |
-
inputs=PDF(label="Upload PDF"),
|
| 87 |
-
outputs=gr.File(label="Download ZIP"),
|
| 88 |
title="PDF to Image Converter",
|
| 89 |
description="Converts PDF pages to images and outputs a ZIP file."
|
| 90 |
)
|
|
|
|
| 75 |
|
| 76 |
text_interface = gr.Interface(
|
| 77 |
fn=extract_text,
|
| 78 |
+
inputs=PDF(label="Upload PDF"),
|
| 79 |
+
outputs=gr.Textbox(label="Extracted Text"),
|
| 80 |
title="PDF extractor",
|
| 81 |
description="Extracts text from the PDF container."
|
| 82 |
)
|
| 83 |
|
| 84 |
pdf_interface = gr.Interface(
|
| 85 |
fn=process_pdf,
|
| 86 |
+
inputs=[PDF(label="Upload PDF"), out_files],
|
| 87 |
+
outputs=[gr.File(label="Download ZIP"), out_files],
|
| 88 |
title="PDF to Image Converter",
|
| 89 |
description="Converts PDF pages to images and outputs a ZIP file."
|
| 90 |
)
|