-
Notifications
You must be signed in to change notification settings - Fork 89
/
.run_cdc_dev.env
executable file
·60 lines (51 loc) · 2.1 KB
/
.run_cdc_dev.env
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
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
# Copyright 2024 Google LLC
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an "AS IS" BASIS,
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and
# limitations under the License.
# Env variables for running run_cdc_dev.sh
# The 3 keys / passwords below are not checked in.
# Either uncomment these lines and set them here or set them separately as environment variables.
# DC_API_KEY=
# MAPS_API_KEY=
# DB_PASS=
# If your DC_API_KEY is for autopush, change this to https://autopush.api.datacommons.org
DC_API_ROOT=https://api.datacommons.org
# Developers will typically change the Cloud SQL and GCS folders below when developing against various DB instances and embeddings files.
# So keep them at the top of the file.
# Cloud SQL settings.
# Set to false is not using Cloud SQL.
USE_CLOUDSQL=true
CLOUDSQL_INSTANCE=datcom-website-dev:us-central1:dc-dev
DB_USER=root
# GCS or local folder to "user data" folder.
# This is primarily for NL embeddings.
# The code looks for it under $USER_DATA_PATH/datacommons/nl/embeddings/custom_catalog.yaml
USER_DATA_PATH=gs://customdc-data/dc-dev
GOOGLE_CLOUD_PROJECT=datcom-website-dev
ADDITIONAL_CATALOG_PATH=$USER_DATA_PATH/datacommons/nl/embeddings/custom_catalog.yaml
# SQLite settings.
# If using sqlite, set USE_CLOUDSQL to false and USE_SQLITE to true.
USE_SQLITE=false
SQLITE_PATH=
# Set this to false if you don't want to start the NL server.
ENABLE_MODEL=true
# You will typically not change these.
IS_CUSTOM_DC=true
FLASK_ENV=custom_dev
WEBSITE_MIXER_API_ROOT=http://127.0.0.1:8081
ENV_PREFIX=Compose
ENABLE_ADMIN=true
DEBUG=true
# https://stackoverflow.com/a/62703850
TOKENIZERS_PARALLELISM=false
# https://github.com/UKPLab/sentence-transformers/issues/1318#issuecomment-1084731111
OMP_NUM_THREADS=1