Spaces:
Paused
Paused
prompt, variable replacement with prompt
Browse files
app.py
CHANGED
@@ -62,7 +62,18 @@ def process_document(image):
|
|
62 |
"type": "image",
|
63 |
"image": image_path, # Use the file path here
|
64 |
},
|
65 |
-
{"type": "text", "text":
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
66 |
],
|
67 |
}
|
68 |
]
|
|
|
62 |
"type": "image",
|
63 |
"image": image_path, # Use the file path here
|
64 |
},
|
65 |
+
{"type": "text", "text": '''Extract the following information in the given format:
|
66 |
+
{
|
67 |
+
'tax_deductions': {
|
68 |
+
'federal:': {
|
69 |
+
'withholding tax:': {'Amount':'', 'Year-To_Date':""},
|
70 |
+
'ee social security tax:': {'Amount':'', 'Year-To_Date':""},
|
71 |
+
'ee medicare tax:': {'Amount':'', 'Year-To_Date':""}},
|
72 |
+
'california:': {
|
73 |
+
'withholding tax:': {'Amount':'', 'Year-To_Date':""},
|
74 |
+
'ee disability tax:': {'Amount':'', 'Year-To-Date':""}}},
|
75 |
+
}
|
76 |
+
'''},
|
77 |
],
|
78 |
}
|
79 |
]
|