Skip to content

Commit

Permalink
update session
Browse files Browse the repository at this point in the history
  • Loading branch information
almazgimaev committed Aug 30, 2024
1 parent f2114d3 commit df9f4a3
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions src/functions.py
Original file line number Diff line number Diff line change
Expand Up @@ -15,8 +15,7 @@ def get_project_classes():


def get_model_info():
if g.session is None:
g.session = Session(g.api, g.session_id)
g.session = Session(g.api, g.session_id)
model_meta = g.session.get_model_meta()
session_info = g.session.get_session_info()
return model_meta.obj_classes, session_info["task type"]
Expand Down

0 comments on commit df9f4a3

Please sign in to comment.