wintergw commited on
Commit
f59146a
·
verified ·
1 Parent(s): 3bdd7ca

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +8 -9
app.py CHANGED
@@ -38,16 +38,15 @@ REPO_TYPE = "space"
38
  # cache_dir = setup_cache_directory()
39
  # download_private_assets(cache_dir)
40
 
41
- # Download the entire space (optional, if needed)
42
- # repo_dir = snapshot_download(
43
- # repo_id=REPO_ID,
44
- # repo_type=REPO_TYPE,
45
- # use_auth_token=True,
46
- # cache_dir="private_space_cache"
47
- # )
48
 
49
- # # Add repo directory to sys.path so Python can find modules inside it
50
- # sys.path.append(repo_dir)
51
 
52
 
53
 
 
38
  # cache_dir = setup_cache_directory()
39
  # download_private_assets(cache_dir)
40
 
41
+ Download the entire space (optional, if needed)
42
+ repo_dir = snapshot_download(
43
+ repo_id=REPO_ID,
44
+ repo_type=REPO_TYPE,
45
+ cache_dir="private_space_cache"
46
+ )
 
47
 
48
+ # Add repo directory to sys.path so Python can find modules inside it
49
+ sys.path.append(repo_dir)
50
 
51
 
52