uartimcs commited on
Commit
d21a60a
·
verified ·
1 Parent(s): 3bc77ee

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -1
app.py CHANGED
@@ -14,7 +14,7 @@ def analysis_process(pdf_file):
14
  pix = page.get_pixmap()
15
  # Save the pixmap as an image
16
  image = Image.frombytes("RGB", [pix.width, pix.height], pix.samples)
17
- image_path = "first_page.jpg"
18
  image.save(image_path)
19
 
20
  output = model.inference(image=image, prompt=task_prompt)["predictions"][0]
 
14
  pix = page.get_pixmap()
15
  # Save the pixmap as an image
16
  image = Image.frombytes("RGB", [pix.width, pix.height], pix.samples)
17
+ image_path = "result.jpg"
18
  image.save(image_path)
19
 
20
  output = model.inference(image=image, prompt=task_prompt)["predictions"][0]