Skip to content

Commit

Permalink
Merge pull request stanfordnlp#581 from JPonsa/dsp-cache-bool-flag
Browse files Browse the repository at this point in the history
env var for cache_utils.py
  • Loading branch information
okhat authored Mar 17, 2024
2 parents cd51647 + 5d8c8e7 commit 06221ad
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion dsp/modules/cache_utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@

from dsp.utils import dotdict

cache_turn_on = True
cache_turn_on = not os.environ.get('DSP_CACHEBOOL', 'True').lower() == 'false'


def noop_decorator(arg=None, *noop_args, **noop_kwargs):
Expand Down

0 comments on commit 06221ad

Please sign in to comment.