2023-09-11 17:02:17 +00:00
|
|
|
# File and Directory Constants
|
2023-09-11 17:35:55 +00:00
|
|
|
IMAGE_KEY="image"
|
|
|
|
APKG_FILE="out.apkg"
|
2023-09-11 17:02:17 +00:00
|
|
|
CONVERTED_DIR = "converted"
|
2023-09-11 17:35:55 +00:00
|
|
|
TEXT_OCR_FILE = "final.txt"
|
2023-09-11 17:02:17 +00:00
|
|
|
IMAGE_EXTENSIONS = ['.png', '.jpg', '.jpeg']
|
2023-09-11 17:35:55 +00:00
|
|
|
DECK_JSON_FILE = "output_deck.json"
|
2023-09-11 17:02:17 +00:00
|
|
|
|
|
|
|
# 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'
|