Open tillmo opened 1 year ago
Here some sample code using jsoneditor:
import jsoneditor
json_value = None
def store_json(json_data: dict):
global json_value
json_value = json_data
data = "{1:2 , 3:4}"
jsoneditor.editjson(data,callback=store_json)
print(json_value)
The json value produced by
extract_main_info
inpurchase_invoice.py
as an intermediate result shall be editable by the user in order to mitigate inaccuracies of the AI model, before the json is then further processed inparse_invoice_json
. Implement a small GUI that shows the PDF of the invoice (see e.g.evince
inread_and_transfer
inprerechnung.py
) as well as the json value. Allow the user to edit the json, using some editor like this one.