Spaces:
Sleeping
Sleeping
Update app.py
Browse files
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="
|
| 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."
|