@@ -254,7 +254,7 @@ def _make_stats_card(self):
254
254
index = True ,
255
255
)
256
256
)
257
- return rc .Group (blocks = stats , label = "STATS" )
257
+ return rc .Group (stats , label = "STATS" )
258
258
259
259
def _make_text_card (self ):
260
260
annotations = []
@@ -420,13 +420,13 @@ def _make_summary_stats_card(self) -> rc.Group:
420
420
entites_df = self ._build_total_entity_df ()
421
421
summary_stats .append (rc .Heading ("Resolved Entities" , level = 3 ))
422
422
summary_stats .append (rc .DataTable (entites_df , index = True ))
423
- return rc .Group (blocks = summary_stats , label = "STATS" )
423
+ return rc .Group (summary_stats , label = "STATS" )
424
424
425
425
def _make_yaml_card (self ) -> rc .Group :
426
426
"""Shows the full pii config yaml."""
427
427
yaml_appendix_title = rc .Heading ("Reference: YAML File" , level = 2 )
428
428
yaml_appendix = rc .Yaml (self .report_spec .run_summary .config .to_dict ())
429
- return rc .Group (blocks = [ yaml_appendix_title , yaml_appendix ] , label = "YAML" )
429
+ return rc .Group (yaml_appendix_title , yaml_appendix , label = "YAML" )
430
430
431
431
def _make_model_card (self ) -> rc .Group :
432
432
"""Generates model card."""
@@ -446,12 +446,12 @@ def _make_model_card(self) -> rc.Group:
446
446
447
447
if len (model_cards ) <= 1 :
448
448
return rc .Group (
449
- blocks = model_cards ,
449
+ model_cards ,
450
450
label = "MODEL CARD" ,
451
451
)
452
452
return rc .Group (
453
453
rc .Select (
454
- blocks = model_cards ,
454
+ model_cards ,
455
455
type = rc .SelectType .TABS ,
456
456
),
457
457
label = "MODEL CARD" ,
0 commit comments