Spaces:
Build error
Build error
Update app.py
Browse files
app.py
CHANGED
|
@@ -37,7 +37,7 @@ def gradio_pdf_merge(pdf_files, output_filename):
|
|
| 37 |
gr_interface = gr.Interface(
|
| 38 |
fn=gradio_pdf_merge, # The function to run when files are uploaded
|
| 39 |
inputs=[
|
| 40 |
-
gr.
|
| 41 |
gr.Textbox(label="Output PDF filename", placeholder="Enter the output filename (e.g., merged.pdf)") # Input for output filename
|
| 42 |
],
|
| 43 |
outputs=gr.File(label="Merged PDF") # Return the merged PDF file
|
|
|
|
| 37 |
gr_interface = gr.Interface(
|
| 38 |
fn=gradio_pdf_merge, # The function to run when files are uploaded
|
| 39 |
inputs=[
|
| 40 |
+
gr.Files(file_types=['.pdf'], label="Upload PDF files"), # Allow multiple PDFs to be uploaded
|
| 41 |
gr.Textbox(label="Output PDF filename", placeholder="Enter the output filename (e.g., merged.pdf)") # Input for output filename
|
| 42 |
],
|
| 43 |
outputs=gr.File(label="Merged PDF") # Return the merged PDF file
|