File tree Expand file tree Collapse file tree 1 file changed +6
-3
lines changed
Expand file tree Collapse file tree 1 file changed +6
-3
lines changed Original file line number Diff line number Diff line change 1212
1313logger = logging .getLogger ("the_well" )
1414
15- CONFIG_DIR = pathlib .Path (__file__ ) / ".." / ".." / "the_well" / "benchmark" / "configs"
15+ CONFIG_DIR = (
16+ pathlib .Path (__file__ ) / ".." / ".." / ".." / "the_well" / "benchmark" / "configs"
17+ ).resolve ()
1618CONFIG_NAME = "model_upload"
1719
1820
@@ -22,7 +24,8 @@ def link_model_card(model_name: str, target_file: pathlib.Path):
2224 pathlib .Path (__file__ ) / ".." / ".." / "the_well" / "benchmark" / "models"
2325 )
2426 readme_file = model_directory / model_name / "README.md"
25- readme_file .symlink_to (target_file )
27+ readme_file = readme_file .resolve ()
28+ target_file .symlink_to (readme_file )
2629
2730
2831def upload_folder (folder : pathlib .Path , repo_id : str ):
@@ -32,7 +35,7 @@ def upload_folder(folder: pathlib.Path, repo_id: str):
3235 )
3336
3437
35- @hydra .main (config_path = CONFIG_DIR , config_name = CONFIG_NAME )
38+ @hydra .main (config_path = str ( CONFIG_DIR ) , config_name = CONFIG_NAME )
3639def main (cfg : DictConfig ):
3740 logger .info (f"Instantiate datamodule { cfg .data ._target_ } " )
3841 datamodule : WellDataModule = instantiate (cfg .data )
You can’t perform that action at this time.
0 commit comments