Skip to content

Commit

Permalink
Revert "update openssa.l2.resource.file.FileResource"
Browse files Browse the repository at this point in the history
This reverts commit f64e145.
  • Loading branch information
TheVinhLuong102 committed Mar 15, 2024
1 parent f64e145 commit 9ef39d3
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 @@ -82,7 +82,7 @@ def __post_init__(self, re_index: bool):
self.path: Path = self.path.resolve(strict=True)
self.str_path: DirOrFileStrPath = str(self.path)
else:
self.str_path = self.path = os.path.abspath(path=self.path.lstrip().rstrip('/\\'))
self.str_path = self.path = self.path.lstrip().rstrip('/\\')

self.embed_model_name: str = self.embed_model.model_name

Expand Down

0 comments on commit 9ef39d3

Please sign in to comment.