wintergw commited on
Commit
71b9b3b
·
verified ·
1 Parent(s): f40d7c0

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +10 -0
app.py CHANGED
@@ -34,6 +34,16 @@ def download_private_assets(cache_dir):
34
  cache_dir = setup_cache_directory()
35
  download_private_assets(cache_dir)
36
 
 
 
 
 
 
 
 
 
 
 
37
 
38
 
39
  # Download specific files (if snapshot_download wasn't used)
 
34
  cache_dir = setup_cache_directory()
35
  download_private_assets(cache_dir)
36
 
37
+ # Download the entire space (optional, if needed)
38
+ repo_dir = snapshot_download(
39
+ repo_id=REPO_ID,
40
+ repo_type=REPO_TYPE,
41
+ cache_dir="private_space_cache"
42
+ )
43
+
44
+ # Add repo directory to sys.path so Python can find modules inside it
45
+ sys.path.append(repo_dir)
46
+
47
 
48
 
49
  # Download specific files (if snapshot_download wasn't used)