Skip to content

Commit b02a3d6

Browse files
committed
syntax error
1 parent 38360ff commit b02a3d6

File tree

3 files changed

+17
-19
lines changed

3 files changed

+17
-19
lines changed

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

Lines changed: 13 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -115,21 +115,19 @@ def generate_report(self):
115115

116116
yaml_appendix_title = rc.Heading("Reference: YAML File", level=2)
117117
yaml_appendix = rc.Yaml(self.config.to_dict())
118-
summary = rc.Blocks(
119-
blocks=[
120-
rc.Group(
121-
rc.Text(f"You selected the **`{self.spec.model}`** model."),
122-
rc.Text(
123-
"Based on your dataset, you could have also selected "
124-
f"any of the models: `{'`, `'.join(SupportedModels.keys())}`."
125-
),
126-
rc.BigNumber(
127-
heading="Analysis was completed in ",
128-
value=human_time_friendly(elapsed_time),
129-
),
130-
label="Summary",
131-
)
132-
]
118+
summary = rc.Block(
119+
rc.Group(
120+
rc.Text(f"You selected the **`{self.spec.model}`** model."),
121+
rc.Text(
122+
"Based on your dataset, you could have also selected "
123+
f"any of the models: `{'`, `'.join(SupportedModels.keys())}`."
124+
),
125+
rc.BigNumber(
126+
heading="Analysis was completed in ",
127+
value=human_time_friendly(elapsed_time),
128+
),
129+
label="Summary",
130+
)
133131
)
134132
sec_text = rc.Heading("Train Evaluation Metrics", level=2)
135133
sec = rc.DataTable(self._evaluation_metrics(anomaly_output), index=True)

ads/opctl/operator/lowcode/forecast/model/neuralprophet.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -377,7 +377,7 @@ def _generate_report(self):
377377
self.explain_model()
378378

379379
# Create a markdown section for the global explainability
380-
global_explanation_section = rc.Blocks(
380+
global_explanation_section = rc.Block(
381381
rc.Heading("Global Explainability", level=2),
382382
rc.Text(
383383
"The following tables provide the feature attribution for the global explainability."

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

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -303,7 +303,7 @@ def make_view(self):
303303
)
304304
report_description = rc.Text(PII_REPORT_DESCRIPTION)
305305

306-
structure = rc.Blocks(
306+
structure = rc.Block(
307307
rc.Select(
308308
blocks=[
309309
rc.Group(
@@ -342,7 +342,7 @@ def save_report(self, report_sections=None, report_uri=None, storage_options={})
342342
f2.write(f1.read())
343343

344344
def _build_summary_page(self):
345-
summary = rc.Blocks(
345+
summary = rc.Block(
346346
rc.Heading("PII Summary", level=1),
347347
rc.Text(self._get_summary_desc()),
348348
rc.Select(
@@ -358,7 +358,7 @@ def _build_summary_page(self):
358358
return summary
359359

360360
def _build_details_page(self):
361-
details = rc.Blocks(
361+
details = rc.Block(
362362
rc.Text(DETAILS_REPORT_DESCRIPTION),
363363
rc.Select(
364364
blocks=[

0 commit comments

Comments
 (0)