ghodrat commited on
Commit
c6dc4a1
·
verified ·
1 Parent(s): a99be11

Update src/streamlit_app.py

Browse files
Files changed (1) hide show
  1. src/streamlit_app.py +6 -6
src/streamlit_app.py CHANGED
@@ -4,11 +4,11 @@ import importlib
4
  from pathlib import Path
5
 
6
  fs = HfFileSystem()
7
- def setup_cache_directory():
8
- """Setup and return cache directory for private space files"""
9
- cache_dir = Path("private_space_cache")
10
- cache_dir.mkdir(exist_ok=True)
11
- return cache_dir
12
 
13
  def download_private_assets(cache_dir):
14
  """Download necessary files from private space"""
@@ -24,7 +24,7 @@ def download_private_assets(cache_dir):
24
  st.error(f"Error downloading private assets: {str(e)}")
25
  return False
26
 
27
- setup_cache_directory()
28
  download_private_assets("private_space_cache")
29
 
30
  # snapshot_downloading your private space
 
4
  from pathlib import Path
5
 
6
  fs = HfFileSystem()
7
+ #def setup_cache_directory():
8
+ # """Setup and return cache directory for private space files"""
9
+ #cache_dir = Path("private_space_cache")
10
+ # cache_dir.mkdir(exist_ok=True)
11
+ # return cache_dir
12
 
13
  def download_private_assets(cache_dir):
14
  """Download necessary files from private space"""
 
24
  st.error(f"Error downloading private assets: {str(e)}")
25
  return False
26
 
27
+ #setup_cache_directory()
28
  download_private_assets("private_space_cache")
29
 
30
  # snapshot_downloading your private space