Skip to content

Commit c88b848

Browse files
committed
reformat yaml
1 parent f3ebc2d commit c88b848

File tree

2 files changed

+2
-3
lines changed

2 files changed

+2
-3
lines changed

ads/opctl/operator/lowcode/anomaly/model/base_model.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -114,7 +114,7 @@ def generate_report(self):
114114
title_text = rc.Heading("Anomaly Detection Report", level=1)
115115

116116
yaml_appendix_title = rc.Heading("Reference: YAML File", level=2)
117-
yaml_appendix = rc.Code(code=self.config.to_yaml(), language="yaml")
117+
yaml_appendix = rc.Yaml(self.config.to_dict())
118118
summary = rc.Blocks(
119119
blocks=[
120120
rc.Group(

ads/opctl/operator/lowcode/pii/model/report.py

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -423,9 +423,8 @@ def _make_summary_stats_card(self) -> rc.Group:
423423

424424
def _make_yaml_card(self) -> rc.Group:
425425
"""Shows the full pii config yaml."""
426-
yaml_string = self.report_spec.run_summary.config.to_yaml()
427426
yaml_appendix_title = rc.Heading("Reference: YAML File", level=2)
428-
yaml_appendix = rc.Code(code=yaml_string, language="yaml")
427+
yaml_appendix = rc.Yaml(self.report_spec.run_summary.config.to_dict())
429428
return rc.Group(blocks=[yaml_appendix_title, yaml_appendix], label="YAML")
430429

431430
def _make_model_card(self) -> rc.Group:

0 commit comments

Comments
 (0)