andreeabodea commited on
Commit
3bbdac2
·
verified ·
1 Parent(s): 87af43d

update inputs and outputs in Gradio iface call

Browse files
Files changed (1) hide show
  1. app.py +2 -2
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.inputs.File(type="file", label="Upload PDF"),
90
- outputs="text",
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