Spaces:
Running
Running
Update app.py
Browse files
app.py
CHANGED
@@ -16,7 +16,7 @@ def analysis_process(pdf_file):
|
|
16 |
image_path = "first_page.jpg"
|
17 |
image.save(image_path)
|
18 |
|
19 |
-
output = model.inference(image=
|
20 |
return output
|
21 |
|
22 |
task_name = "SGSInvoice"
|
|
|
16 |
image_path = "first_page.jpg"
|
17 |
image.save(image_path)
|
18 |
|
19 |
+
output = model.inference(image=image, prompt=task_prompt)["predictions"][0]
|
20 |
return output
|
21 |
|
22 |
task_name = "SGSInvoice"
|