Instantnewdesign commited on
Commit
ce41633
·
verified ·
1 Parent(s): 0106f83

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -1
app.py CHANGED
@@ -32,7 +32,7 @@ def extract_from_file(file):
32
 
33
  demo = gr.Interface(
34
  fn=extract_from_file,
35
- inputs=gr.File(type="file", label="Upload PDF or Image"),
36
  outputs=gr.Textbox(label="Extracted Text", lines=20),
37
  title="MinerU2.5 Document Extractor",
38
  description="Upload a PDF or Image to extract structured text using MinerU2.5."
 
32
 
33
  demo = gr.Interface(
34
  fn=extract_from_file,
35
+ inputs=gr.File(type="filepath", label="Upload PDF or Image"),
36
  outputs=gr.Textbox(label="Extracted Text", lines=20),
37
  title="MinerU2.5 Document Extractor",
38
  description="Upload a PDF or Image to extract structured text using MinerU2.5."