Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

provide GUI for editing intermediate data model values of purchase invoices #28

Open
tillmo opened this issue May 30, 2023 · 1 comment

Comments

@tillmo
Copy link
Owner

tillmo commented May 30, 2023

The json value produced by extract_main_info in purchase_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 in parse_invoice_json.
Implement a small GUI that shows the PDF of the invoice (see e.g. evince in read_and_transfer in prerechnung.py) as well as the json value. Allow the user to edit the json, using some editor like this one.

@tillmo
Copy link
Owner Author

tillmo commented May 30, 2023

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)

@tillmo tillmo changed the title provide GUI for editing intermediate json values of purchase invoices provide GUI for editing intermediate data model values of purchase invoices May 31, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant