Commit Graph

7 Commits

Author SHA1 Message Date
74a5381bec fix: fixed help msg for --ocr argument 2024-02-05 18:36:44 +01:00
470ec46f6e fix(debug): if request fails, prints proper output 2024-02-05 15:07:25 +01:00
83ec148b85 Update prompt.py to add instructions and improve clarity and performance
The updated prompt adds more detailed and clarified instructions within the script, including specifications about how dictionary content should be handled, and more examples. Unused question and answer examples have been removed. Additional rules regarding dictionary content and OCR text recognition have been included.
2024-02-05 09:49:08 +01:00
ef4f97d544 Update .gitignore file to include new patterns
The .gitignore file has been updated to include two new ignore patterns. These alterations help to ignore all 'out.' files with any extension and any file with '.old.' in its name. This ensures that temporary or backup files do not get included in the repo unintentionally.
2024-02-05 09:48:19 +01:00
d9eb6f1c64 Implement local OCR and batch processing CLI flag
Implemented optical character recognition (OCR) in the image_to_anki function to vastly enhance performance. Additionally, allowed batch processing of images via explicitly specified batch size in command-line arguments
2024-02-05 09:47:49 +01:00
3d09cbbef8 improvement: added "detail": "high" to image for chatgpt's benefit 2024-02-02 13:47:38 +01:00
906fcc78b1 INITIAL COMMIT 2024-02-01 12:56:34 +01:00