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