nsthorat-lilac commited on
Commit
1648180
1 Parent(s): 7be5414

Upload docker_start.py with huggingface_hub

Browse files
Files changed (1) hide show
  1. docker_start.py +1 -7
docker_start.py CHANGED
@@ -7,7 +7,7 @@ from typing import TypedDict
7
  import yaml
8
  from huggingface_hub import scan_cache_dir, snapshot_download
9
 
10
- from lilac.concepts.db_concept import CONCEPTS_DIR, DiskConceptDB, get_concept_output_dir
11
  from lilac.env import env, get_project_dir
12
  from lilac.project import PROJECT_CONFIG_FILENAME
13
  from lilac.utils import get_datasets_dir, get_lilac_cache_dir, log
@@ -86,12 +86,6 @@ def main() -> None:
86
  if os.path.exists(cache_dir):
87
  shutil.rmtree(cache_dir)
88
 
89
- # NOTE: This is temporary during the move of concepts into the pip package. Once all the demos
90
- # have been updated, this block can be deleted.
91
- old_lilac_concepts_data_dir = os.path.join(get_project_dir(), CONCEPTS_DIR, 'lilac')
92
- if os.path.exists(old_lilac_concepts_data_dir):
93
- shutil.rmtree(old_lilac_concepts_data_dir)
94
-
95
  # Copy cache files from the space if they exist.
96
  spaces_cache_dir = get_lilac_cache_dir(spaces_data_dir)
97
  if os.path.exists(spaces_cache_dir):
 
7
  import yaml
8
  from huggingface_hub import scan_cache_dir, snapshot_download
9
 
10
+ from lilac.concepts.db_concept import DiskConceptDB, get_concept_output_dir
11
  from lilac.env import env, get_project_dir
12
  from lilac.project import PROJECT_CONFIG_FILENAME
13
  from lilac.utils import get_datasets_dir, get_lilac_cache_dir, log
 
86
  if os.path.exists(cache_dir):
87
  shutil.rmtree(cache_dir)
88
 
 
 
 
 
 
 
89
  # Copy cache files from the space if they exist.
90
  spaces_cache_dir = get_lilac_cache_dir(spaces_data_dir)
91
  if os.path.exists(spaces_cache_dir):