-
-
Notifications
You must be signed in to change notification settings - Fork 39
/
CONSTANTS.py
26 lines (21 loc) · 787 Bytes
/
CONSTANTS.py
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
SAFETENSORS_STR = "safetensors"
CKPT_STR = "ckpt"
PYTORCH_FILE_EXTENSIONS = {f".{CKPT_STR}"}
SAFETENSORS_FILE_EXTENSIONS = {f".{SAFETENSORS_STR}"}
FILE_RAD_KEY = '-file_radio-'
DIRECTORY_RAD_KEY = '-directory_radio-'
TYPE_SELECTOR_INP_RAD_KEY = '-type_selector_input_radio-'
FILE_LBL = 'File'
DIRECTORY_LBL = 'Directory'
CONVERT_FILE_BTN_KEY = '-convert_file_button-'
CONVERT_DIRECTORY_BTN_KEY = '-convert_directory_button-'
ADD_SUFFIX_CHKBOX_KEY = '-add_suffix_chkbox-'
CONVERT_FILE_BTN_LBL = 'CONVERT FILE'
CONVERT_DIRECTORY_BTN_LBL = 'CONVERT DIRECTORY'
ADD_SUFFIX_CHKBOX_LBL = 'Add Suffix'
FONT = 'Arial 12'
CONSOLE_FONT = 'Arial 11'
FORMAT_SELECTOR_COMBO_KEY = '-format_selector_combo-'
CONSOLE_ML_KEY = '-console_ml-'
PBAR_KEY = 'progress_bar'
CONVERTING_TXT = 'Converting...'