andreeabodea commited on
Commit
67a0567
·
verified ·
1 Parent(s): 3bbdac2

binary instead of pdf in inputs parameter of gradio Interface

Browse files
Files changed (1) hide show
  1. app.py +1 -1
app.py CHANGED
@@ -86,7 +86,7 @@ def process_pdf(path):
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.")
 
86
 
87
  # Define the Gradio interface
88
  iface = gr.Interface(fn=process_pdf,
89
+ inputs=gr.File(type="binary", 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.")