Skip to content

Commit

Permalink
minor fix: openssa.l2.resource.file.FileResource
Browse files Browse the repository at this point in the history
  • Loading branch information
TheVinhLuong102 committed Mar 15, 2024
1 parent a403d2a commit 296f381
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion openssa/l2/resource/file.py
Original file line number Diff line number Diff line change
Expand Up @@ -90,7 +90,7 @@ def __post_init__(self, re_index: bool):

self.index_dir_path: DirOrFileStrPath = ((str(self.path / f'.{self.embed_model_name}')
if isinstance(self.path, Path)
else f'{self.path}/.{self.embed_model_name}')
else os.path.join(self.path, f'.{self.embed_model_name}'))
if self.is_dir
else mkdtemp(suffix=None, prefix=None, dir=None))

Expand Down

0 comments on commit 296f381

Please sign in to comment.