Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

#540 Fixed clickability issue with XAI Button #554

Merged
merged 6 commits into from
Jan 30, 2025
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 1 addition & 2 deletions controller/managers/general/ModelManager.py
Original file line number Diff line number Diff line change
Expand Up @@ -71,12 +71,11 @@ def __model_object_to_rpc_object(self, user_id: str, model: dict) -> Model:

model_info.status_messages[:] = model["status_messages"]

#model_info.explanation = json.dumps(model["explanation"])
if not model.get("dashboard_path"): # Returns None if key is missing
model_info.dashboard_status = "inactive"
else:
model_info.dashboard_status = "active"
#model_info.explanation = json.dumps(model["explanation"])

if not "carbon_footprint" in model:
model["carbon_footprint"] = {"emissions": 0}
model_info.emission = model["carbon_footprint"].get("emissions", 0)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -130,6 +130,7 @@
StateHasChanged();
}
}

private bool ModelEmpty = true;

private async Task LoadModelExplanation()
Expand Down