Spaces:
Runtime error
Runtime error
kbberendsen
commited on
Commit
·
bf24d8a
1
Parent(s):
e5d2e0d
change cache dir
Browse files
app.py
CHANGED
@@ -8,8 +8,10 @@ import numpy as np
|
|
8 |
import os
|
9 |
|
10 |
try:
|
11 |
-
|
12 |
-
|
|
|
|
|
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 |
|