Commit
·
25c9832
1
Parent(s):
e4c7d3c
Modified config entries to not assume allow list or cost codes file exists. Reduced concurrency to 3 and put input and output files in user subfolders by default
Browse files- tools/config.py +8 -8
tools/config.py
CHANGED
@@ -85,7 +85,7 @@ MAX_IMAGE_PIXELS = get_or_create_env_var('MAX_IMAGE_PIXELS', '') # Changed to No
|
|
85 |
# File I/O config
|
86 |
###
|
87 |
|
88 |
-
SESSION_OUTPUT_FOLDER = get_or_create_env_var('SESSION_OUTPUT_FOLDER', '
|
89 |
|
90 |
OUTPUT_FOLDER = get_or_create_env_var('GRADIO_OUTPUT_FOLDER', 'output/') # 'output/'
|
91 |
INPUT_FOLDER = get_or_create_env_var('GRADIO_INPUT_FOLDER', 'input/') # 'input/'
|
@@ -145,21 +145,21 @@ GRADIO_SERVER_PORT = int(get_or_create_env_var('GRADIO_SERVER_PORT', '7860'))
|
|
145 |
|
146 |
ROOT_PATH = get_or_create_env_var('ROOT_PATH', '')
|
147 |
|
148 |
-
DEFAULT_CONCURRENCY_LIMIT = get_or_create_env_var('DEFAULT_CONCURRENCY_LIMIT', '
|
149 |
|
150 |
-
GET_DEFAULT_ALLOW_LIST = get_or_create_env_var('GET_DEFAULT_ALLOW_LIST', '
|
151 |
|
152 |
-
ALLOW_LIST_PATH = get_or_create_env_var('ALLOW_LIST_PATH', 'config/default_allow_list.csv
|
153 |
|
154 |
-
S3_ALLOW_LIST_PATH = get_or_create_env_var('S3_ALLOW_LIST_PATH', 'default_allow_list.csv
|
155 |
|
156 |
SHOW_COSTS = get_or_create_env_var('SHOW_COSTS', 'True')
|
157 |
|
158 |
-
GET_COST_CODES = get_or_create_env_var('GET_COST_CODES', '
|
159 |
|
160 |
-
COST_CODES_PATH = get_or_create_env_var('COST_CODES_PATH', 'config/COST_CENTRES.csv'
|
161 |
|
162 |
-
S3_COST_CODES_PATH = get_or_create_env_var('S3_COST_CODES_PATH', 'COST_CENTRES.csv
|
163 |
|
164 |
ENFORCE_COST_CODES = get_or_create_env_var('ENFORCE_COST_CODES', 'False') # If you have cost codes listed, are they compulsory?
|
165 |
|
|
|
85 |
# File I/O config
|
86 |
###
|
87 |
|
88 |
+
SESSION_OUTPUT_FOLDER = get_or_create_env_var('SESSION_OUTPUT_FOLDER', 'True') # i.e. do you want your input and output folders saved within a subfolder based on session hash value within output/input folders
|
89 |
|
90 |
OUTPUT_FOLDER = get_or_create_env_var('GRADIO_OUTPUT_FOLDER', 'output/') # 'output/'
|
91 |
INPUT_FOLDER = get_or_create_env_var('GRADIO_INPUT_FOLDER', 'input/') # 'input/'
|
|
|
145 |
|
146 |
ROOT_PATH = get_or_create_env_var('ROOT_PATH', '')
|
147 |
|
148 |
+
DEFAULT_CONCURRENCY_LIMIT = get_or_create_env_var('DEFAULT_CONCURRENCY_LIMIT', '3')
|
149 |
|
150 |
+
GET_DEFAULT_ALLOW_LIST = get_or_create_env_var('GET_DEFAULT_ALLOW_LIST', 'False')
|
151 |
|
152 |
+
ALLOW_LIST_PATH = get_or_create_env_var('ALLOW_LIST_PATH', '') # config/default_allow_list.csv
|
153 |
|
154 |
+
S3_ALLOW_LIST_PATH = get_or_create_env_var('S3_ALLOW_LIST_PATH', '') # default_allow_list.csv # This is a path within the DOCUMENT_REDACTION_BUCKET
|
155 |
|
156 |
SHOW_COSTS = get_or_create_env_var('SHOW_COSTS', 'True')
|
157 |
|
158 |
+
GET_COST_CODES = get_or_create_env_var('GET_COST_CODES', 'False')
|
159 |
|
160 |
+
COST_CODES_PATH = get_or_create_env_var('COST_CODES_PATH', '') # 'config/COST_CENTRES.csv' # file should be a csv file with a single table in it that has two columns with a header. First column should contain cost codes, second column should contain a name or description for the cost code
|
161 |
|
162 |
+
S3_COST_CODES_PATH = get_or_create_env_var('S3_COST_CODES_PATH', '') # COST_CENTRES.csv # This is a path within the DOCUMENT_REDACTION_BUCKET
|
163 |
|
164 |
ENFORCE_COST_CODES = get_or_create_env_var('ENFORCE_COST_CODES', 'False') # If you have cost codes listed, are they compulsory?
|
165 |
|