uartimcs commited on
Commit
1429cd5
·
verified ·
1 Parent(s): c0f0c5d

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -0
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