Skip to content

Commit

Permalink
chore: update .env.example with device setting
Browse files Browse the repository at this point in the history
  • Loading branch information
atrifat committed Jul 19, 2024
1 parent b5070f8 commit ad4adaf
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion .env.example
Original file line number Diff line number Diff line change
Expand Up @@ -15,4 +15,7 @@ TOPIC_CLASSIFICATION_MODEL="cardiffnlp/twitter-roberta-base-dec2021-tweet-topic-
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
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

0 comments on commit ad4adaf

Please sign in to comment.