Skip to content

Commit

Permalink
delete unnecessary code
Browse files Browse the repository at this point in the history
  • Loading branch information
vorozhkog committed Jul 25, 2024
1 parent 6354eeb commit 179f53a
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 6 deletions.
9 changes: 7 additions & 2 deletions project-dataset/local.env
Original file line number Diff line number Diff line change
@@ -1,4 +1,9 @@
# TEAM_ID=431
# WORKSPACE_ID=1019
# PROJECT_ID=38241
# DATASET_ID=89589

# gera
TEAM_ID=431
WORKSPACE_ID=1019
PROJECT_ID=38241
# DATASET_ID=89589
PROJECT_ID=38241
4 changes: 0 additions & 4 deletions project-dataset/src/ui/connect_nn.py
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,6 @@
error_text = Text(status="warning")
error_button = Button(button_size="small", link="")
error_container = Container([error_text, error_button])
error_button.hide
error_container.hide()

model_info = ModelInfo()
Expand Down Expand Up @@ -51,11 +50,9 @@ def model_selected() -> None:
"Couldn't connect to the model. Make sure that model is deployed and try again."
)
app_url = f"{g.api.server_address}/apps/sessions/{g.model_session_id}"
sly.logger.debug(f"Error button url: {app_url}")

error_button.text = "OPEN SERVING APP"
error_button.link = app_url
error_button.show()
error_container.show()

return
Expand All @@ -64,7 +61,6 @@ def model_selected() -> None:
g.inference_settings = get_inference_settings()
inference_settings.additional_settings.set_text(g.inference_settings["settings"])

error_button.hide()
error_container.hide()
model_info.set_session_id(g.model_session_id)
g.model_info = g.api.task.send_request(g.model_session_id, "get_session_info", data={})
Expand Down

0 comments on commit 179f53a

Please sign in to comment.