xelpmocAI commited on
Commit
f23a76a
·
verified ·
1 Parent(s): ea60bdd

prompt, variable replacement with prompt

Browse files
Files changed (1) hide show
  1. app.py +12 -1
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": prompt},
 
 
 
 
 
 
 
 
 
 
 
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
  ]