anki-csv2ankicards/constants.py
2023-09-11 20:35:55 +03:00

17 lines
428 B
Python

# File and Directory Constants
IMAGE_KEY="image"
APKG_FILE="out.apkg"
CONVERTED_DIR = "converted"
TEXT_OCR_FILE = "final.txt"
IMAGE_EXTENSIONS = ['.png', '.jpg', '.jpeg']
DECK_JSON_FILE = "output_deck.json"
# API Constants
API_KEY_ENV = "OPENAI_API_KEY"
CHAT_MODEL = "gpt-3.5-turbo"
# Error Messages
NO_IMAGE_PART_ERROR = 'No image part'
NO_SELECTED_FILE_ERROR = 'No selected file'
INVALID_FILENAME_ERROR = 'Invalid filename'