Skip to content

Commit

Permalink
Refactor workflow
Browse files Browse the repository at this point in the history
  • Loading branch information
GoldenAnpu committed Aug 23, 2024
1 parent 89324c0 commit 5c6f3aa
Showing 1 changed file with 13 additions and 13 deletions.
26 changes: 13 additions & 13 deletions src/ui/tabs/run.py
Original file line number Diff line number Diff line change
Expand Up @@ -240,6 +240,19 @@ def _run():
results.show()
circle_progress.set_status("success")

# ---------------------------------------- Workflow Input ---------------------------------------- #
w.workflow_input(g.api, data_layers)
# ----------------------------------------------- - ---------------------------------------------- #

# ---------------------------------------- Workflow Output --------------------------------------- #
w.workflow_output(
g.api,
project_layers=supervisely_layers,
job_layers=labeling_job_layers,
file_infos=file_infos,
)
# ----------------------------------------------- - ---------------------------------------------- #

except CustomException as e:
error_notification.set(title="Error", description=str(e.args[0]))
error_notification.show()
Expand Down Expand Up @@ -274,19 +287,6 @@ def _run():
g.pipeline_thread = None
global_timer.dump()

# ---------------------------------------- Workflow Input ---------------------------------------- #
w.workflow_input(g.api, data_layers)
# ----------------------------------------------- - ---------------------------------------------- #

# ---------------------------------------- Workflow Output --------------------------------------- #
w.workflow_output(
g.api,
project_layers=supervisely_layers,
job_layers=labeling_job_layers,
file_infos=file_infos,
)
# ----------------------------------------------- - ---------------------------------------------- #


def run_pipeline(run_dialog: Dialog = None):
g.pipeline_running = True
Expand Down

0 comments on commit 5c6f3aa

Please sign in to comment.