Spaces:
Runtime error
Runtime error
update inputs and outputs in Gradio iface call
Browse files
app.py
CHANGED
@@ -86,8 +86,8 @@ def process_pdf(path):
|
|
86 |
|
87 |
# Define the Gradio interface
|
88 |
iface = gr.Interface(fn=process_pdf,
|
89 |
-
inputs=gr.
|
90 |
-
outputs="
|
91 |
title="PDF Text Extractor",
|
92 |
description="Upload a PDF file to extract all its text.")
|
93 |
|
|
|
86 |
|
87 |
# Define the Gradio interface
|
88 |
iface = gr.Interface(fn=process_pdf,
|
89 |
+
inputs=gr.File(type="pdf", label="Upload PDF"),
|
90 |
+
outputs=gr.Textbox(label="Extracted Text"),
|
91 |
title="PDF Text Extractor",
|
92 |
description="Upload a PDF file to extract all its text.")
|
93 |
|