kbberendsen commited on
Commit
f94c9eb
·
1 Parent(s): b3344b3

change cache directory with os package

Browse files
Files changed (1) hide show
  1. app.py +3 -1
app.py CHANGED
@@ -5,8 +5,10 @@ import matplotlib.pyplot as plt
5
  from matplotlib.collections import LineCollection
6
  from matplotlib import cm
7
  import numpy as np
 
8
 
9
- ff1.Cache.enable_cache('./cache')
 
10
 
11
  app_ui = ui.page_fluid(
12
  ui.div(
 
5
  from matplotlib.collections import LineCollection
6
  from matplotlib import cm
7
  import numpy as np
8
+ import os
9
 
10
+ cache_dir = os.path.exists("cache")
11
+ ff1.Cache.enable_cache(cache_dir)
12
 
13
  app_ui = ui.page_fluid(
14
  ui.div(