Spaces:
Sleeping
Sleeping
Vivien
commited on
Commit
·
3370440
1
Parent(s):
74c78aa
Change caching options
Browse files
app.py
CHANGED
@@ -7,10 +7,10 @@ device = torch.device("cpu")
|
|
7 |
|
8 |
DEBUG = False
|
9 |
if DEBUG:
|
10 |
-
cache_kwargs = {"
|
11 |
model_name = "MiDaS_small"
|
12 |
else:
|
13 |
-
cache_kwargs = {"show_spinner": False, "
|
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 = [
|