Spaces:
Sleeping
Sleeping
Update app.py
Browse files
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 = "
|
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]
|