uartimcs commited on
Commit
b0be0f0
·
verified ·
1 Parent(s): 7c15745

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -0
app.py CHANGED
@@ -5,6 +5,7 @@ from donut import DonutModel
5
 
6
 
7
  def analysis_process(pdf_file):
 
8
  # Open the PDF file
9
  document = fitz.open(pdf_file.name)
10
  # Get the first page
 
5
 
6
 
7
  def analysis_process(pdf_file):
8
+ global model, task_prompt, task_name
9
  # Open the PDF file
10
  document = fitz.open(pdf_file.name)
11
  # Get the first page