Skip to content

Commit

Permalink
Merge pull request #58 from jainkunal/patch-1
Browse files Browse the repository at this point in the history
fix: Session is not initialized.
  • Loading branch information
Gonmeso authored Jun 10, 2024
2 parents 8e5fb6a + e42bbf7 commit 9b43136
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion giza/agents/model.py
Original file line number Diff line number Diff line change
Expand Up @@ -93,14 +93,14 @@ def __init__(
self.uri = self._retrieve_uri()
self.endpoint_id = self._get_endpoint_id()
self._cache = Cache(os.path.join(os.getcwd(), "tmp", "cachedir"))
self.session = self._set_session()
if output_path is not None:
self._output_path = output_path
else:
self._output_path = os.path.join(
tempfile.gettempdir(),
f"{self.model_id}_{self.version_id}_{self.model.name}",
)
self.session = self._set_session()
self._download_model()

def _get_endpoint_id(self) -> int:
Expand Down

0 comments on commit 9b43136

Please sign in to comment.