seanpedrickcase commited on
Commit
5fed34d
·
1 Parent(s): 3ce9cef

Changed config defaults to enable successful app run without local model inference on first run

Browse files
Files changed (1) hide show
  1. tools/config.py +3 -3
tools/config.py CHANGED
@@ -76,7 +76,7 @@ if AWS_CONFIG_PATH:
76
  load_dotenv(AWS_CONFIG_PATH)
77
  else: print("AWS config file not found at location:", AWS_CONFIG_PATH)
78
 
79
- RUN_AWS_FUNCTIONS = get_or_create_env_var("RUN_AWS_FUNCTIONS", "1")
80
 
81
  AWS_REGION = get_or_create_env_var('AWS_REGION', '')
82
 
@@ -210,7 +210,7 @@ DEDUPLICATION_THRESHOLD = int(get_or_create_env_var('DEDUPLICATION_THRESHOLD', '
210
  # Model options
211
  ###
212
 
213
- RUN_LOCAL_MODEL = get_or_create_env_var("RUN_LOCAL_MODEL", "1")
214
 
215
  RUN_AWS_BEDROCK_MODELS = get_or_create_env_var("RUN_AWS_BEDROCK_MODELS", "1")
216
 
@@ -262,7 +262,7 @@ model_name_map = {
262
  # HF token may or may not be needed for downloading models from Hugging Face
263
  HF_TOKEN = get_or_create_env_var('HF_TOKEN', '')
264
 
265
- LOAD_LOCAL_MODEL_AT_START = get_or_create_env_var('LOAD_LOCAL_MODEL_AT_START', 'True')
266
 
267
  # If you are using a system with low VRAM, you can set this to True to reduce the memory requirements
268
  LOW_VRAM_SYSTEM = get_or_create_env_var('LOW_VRAM_SYSTEM', 'False')
 
76
  load_dotenv(AWS_CONFIG_PATH)
77
  else: print("AWS config file not found at location:", AWS_CONFIG_PATH)
78
 
79
+ RUN_AWS_FUNCTIONS = get_or_create_env_var("RUN_AWS_FUNCTIONS", "0")
80
 
81
  AWS_REGION = get_or_create_env_var('AWS_REGION', '')
82
 
 
210
  # Model options
211
  ###
212
 
213
+ RUN_LOCAL_MODEL = get_or_create_env_var("RUN_LOCAL_MODEL", "0")
214
 
215
  RUN_AWS_BEDROCK_MODELS = get_or_create_env_var("RUN_AWS_BEDROCK_MODELS", "1")
216
 
 
262
  # HF token may or may not be needed for downloading models from Hugging Face
263
  HF_TOKEN = get_or_create_env_var('HF_TOKEN', '')
264
 
265
+ LOAD_LOCAL_MODEL_AT_START = get_or_create_env_var('LOAD_LOCAL_MODEL_AT_START', 'False')
266
 
267
  # If you are using a system with low VRAM, you can set this to True to reduce the memory requirements
268
  LOW_VRAM_SYSTEM = get_or_create_env_var('LOW_VRAM_SYSTEM', 'False')