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

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +22 -22
app.py CHANGED
@@ -11,28 +11,28 @@ from pathlib import Path
11
  REPO_ID = "wintergw/assignment_opt_gurobi"
12
  REPO_TYPE = "space"
13
 
14
- def setup_cache_directory():
15
- """Set up and return cache directory for private space files"""
16
- cache_dir = Path("private_space_cache")
17
- cache_dir.mkdir(exist_ok=True)
18
- return cache_dir
19
-
20
- def download_private_assets(cache_dir):
21
- """Download necessary files from private space"""
22
- try:
23
- snapshot_download(
24
- repo_id=REPO_ID,
25
- repo_type=REPO_TYPE,
26
- local_dir=cache_dir,
27
- )
28
- return True
29
- except Exception as e:
30
- print(f"Error downloading private assets: {str(e)}")
31
- return False
32
-
33
- # Setup cache directory and download assets
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(
 
11
  REPO_ID = "wintergw/assignment_opt_gurobi"
12
  REPO_TYPE = "space"
13
 
14
+ # def setup_cache_directory():
15
+ # """Set up and return cache directory for private space files"""
16
+ # cache_dir = Path("private_space_cache")
17
+ # cache_dir.mkdir(exist_ok=True)
18
+ # return cache_dir
19
+
20
+ # def download_private_assets(cache_dir):
21
+ # """Download necessary files from private space"""
22
+ # try:
23
+ # snapshot_download(
24
+ # repo_id=REPO_ID,
25
+ # repo_type=REPO_TYPE,
26
+ # local_dir=cache_dir,
27
+ # )
28
+ # return True
29
+ # except Exception as e:
30
+ # print(f"Error downloading private assets: {str(e)}")
31
+ # return False
32
+
33
+ # # Setup cache directory and download assets
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(