-
Notifications
You must be signed in to change notification settings - Fork 1
/
.env.example
21 lines (15 loc) · 864 Bytes
/
.env.example
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
APP_ENV=production
LISTEN_HOST=0.0.0.0
LISTEN_PORT=5000
# (Optional. Default: false)
ENABLE_API_TOKEN=false
# (Optional) Required only if ENABLE_API_TOKEN==true
# API_TOKEN=
# (Optional. Default: cardiffnlp/twitter-roberta-base-dec2021-tweet-topic-multi-all) Set this with topic classification model name hosted in Huggingface hub.
TOPIC_CLASSIFICATION_MODEL="cardiffnlp/twitter-roberta-base-dec2021-tweet-topic-multi-all"
# (Optional. Default: false. Options: true or false) Check whether the cache will be enabled or not
ENABLE_CACHE=false
# (Optional. Default: 60. Options: integer value) Duration of cache in seconds. Parameter will be used when the cache is enabled
CACHE_DURATION_SECONDS=60
# (Optional. Default: auto. Options: auto,cpu,cuda) Set torch default device for pipeline. Automatically detect if cuda/gpu device is available
TORCH_DEVICE=auto