File tree Expand file tree Collapse file tree 2 files changed +2
-3
lines changed
ads/opctl/operator/lowcode Expand file tree Collapse file tree 2 files changed +2
-3
lines changed Original file line number Diff line number Diff line change @@ -114,7 +114,7 @@ def generate_report(self):
114
114
title_text = rc .Heading ("Anomaly Detection Report" , level = 1 )
115
115
116
116
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 () )
118
118
summary = rc .Blocks (
119
119
blocks = [
120
120
rc .Group (
Original file line number Diff line number Diff line change @@ -423,9 +423,8 @@ def _make_summary_stats_card(self) -> rc.Group:
423
423
424
424
def _make_yaml_card (self ) -> rc .Group :
425
425
"""Shows the full pii config yaml."""
426
- yaml_string = self .report_spec .run_summary .config .to_yaml ()
427
426
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 () )
429
428
return rc .Group (blocks = [yaml_appendix_title , yaml_appendix ], label = "YAML" )
430
429
431
430
def _make_model_card (self ) -> rc .Group :
You can’t perform that action at this time.
0 commit comments