Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
@@ -8,7 +8,7 @@ from donut import DonutModel
|
|
8 |
|
9 |
def demo_process(pdf_path):
|
10 |
global model, task_prompt, task_name
|
11 |
-
|
12 |
return "Hello"
|
13 |
# output = model.inference(image=input_img, prompt=task_prompt)["predictions"][0]
|
14 |
# return output
|
|
|
8 |
|
9 |
def demo_process(pdf_path):
|
10 |
global model, task_prompt, task_name
|
11 |
+
input_img_list = convert_from_path(pdf_path)
|
12 |
return "Hello"
|
13 |
# output = model.inference(image=input_img, prompt=task_prompt)["predictions"][0]
|
14 |
# return output
|