Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
@@ -7,7 +7,7 @@ from pdf2image import convert_from_path
|
|
7 |
def demo_process(pdf_file):
|
8 |
# images = convert_from_path(pdf_file)
|
9 |
# output = model.inference(image=input_img, prompt=task_prompt)["predictions"][0]
|
10 |
-
return
|
11 |
|
12 |
# model = DonutModel.from_pretrained("uartimcs/donut-invoice-extract")
|
13 |
# model.eval()
|
|
|
7 |
def demo_process(pdf_file):
|
8 |
# images = convert_from_path(pdf_file)
|
9 |
# output = model.inference(image=input_img, prompt=task_prompt)["predictions"][0]
|
10 |
+
return pdf_file.name
|
11 |
|
12 |
# model = DonutModel.from_pretrained("uartimcs/donut-invoice-extract")
|
13 |
# model.eval()
|