Vivien commited on
Commit
3370440
·
1 Parent(s): 74c78aa

Change caching options

Browse files
Files changed (1) hide show
  1. app.py +2 -2
app.py CHANGED
@@ -7,10 +7,10 @@ device = torch.device("cpu")
7
 
8
  DEBUG = False
9
  if DEBUG:
10
- cache_kwargs = {"ttl": 60, "max_entries": 20}
11
  model_name = "MiDaS_small"
12
  else:
13
- cache_kwargs = {"show_spinner": False, "ttl": 60, "max_entries": 20}
14
  model_name = "DPT_Large"
15
 
16
  FONTS = [
 
7
 
8
  DEBUG = False
9
  if DEBUG:
10
+ cache_kwargs = {"max_entries": 30}
11
  model_name = "MiDaS_small"
12
  else:
13
+ cache_kwargs = {"show_spinner": False, "max_entries": 30}
14
  model_name = "DPT_Large"
15
 
16
  FONTS = [