Spaces:
Running
on
Zero
Running
on
Zero
Justin Means
commited on
Commit
·
e69e213
1
Parent(s):
c1265a2
Disable example caching for instant startup
Browse filesPre-caching 12 scenes takes 30+ minutes. Disabled for faster startup.
app.py
CHANGED
|
@@ -66,16 +66,9 @@ if __name__ == "__main__":
|
|
| 66 |
examples_dir = os.path.join(workspace_dir, "examples")
|
| 67 |
examples_exist = os.path.exists(examples_dir)
|
| 68 |
|
| 69 |
-
#
|
| 70 |
-
#
|
| 71 |
-
|
| 72 |
-
if cache_examples_env in ("false", "0", "no"):
|
| 73 |
-
cache_examples = False
|
| 74 |
-
elif cache_examples_env in ("true", "1", "yes"):
|
| 75 |
-
cache_examples = True
|
| 76 |
-
else:
|
| 77 |
-
# Default: enable caching if examples directory exists
|
| 78 |
-
cache_examples = examples_exist
|
| 79 |
|
| 80 |
# Get cache_gs_tag from environment variable (default: "dl3dv")
|
| 81 |
cache_gs_tag = os.environ.get("DA3_CACHE_GS_TAG", "dl3dv")
|
|
|
|
| 66 |
examples_dir = os.path.join(workspace_dir, "examples")
|
| 67 |
examples_exist = os.path.exists(examples_dir)
|
| 68 |
|
| 69 |
+
# Disable example caching for faster startup
|
| 70 |
+
# The original demo pre-caches 12 scenes which takes 30+ minutes
|
| 71 |
+
cache_examples = False
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 72 |
|
| 73 |
# Get cache_gs_tag from environment variable (default: "dl3dv")
|
| 74 |
cache_gs_tag = os.environ.get("DA3_CACHE_GS_TAG", "dl3dv")
|