kbberendsen commited on
Commit
bf24d8a
·
1 Parent(s): e5d2e0d

change cache dir

Browse files
Files changed (1) hide show
  1. app.py +4 -2
app.py CHANGED
@@ -8,8 +8,10 @@ import numpy as np
8
  import os
9
 
10
  try:
11
- cache_dir = os.path.exists("cache")
12
- ff1.Cache.enable_cache("/cache")
 
 
13
  except:
14
  print('Cache error!!')
15
 
 
8
  import os
9
 
10
  try:
11
+ script_dir = os.path.dirname(os.path.abspath(__file__))
12
+ cache_folder = 'cache'
13
+ cache_dir = os.path.join(script_directory, cache_folder)
14
+ ff1.Cache.enable_cache(cache_dir)
15
  except:
16
  print('Cache error!!')
17