meg HF staff commited on
Commit
d79b2a3
1 Parent(s): 7e38e38

Seems the .update() function throws an error -- removing.

Browse files
Files changed (1) hide show
  1. app.py +2 -2
app.py CHANGED
@@ -52,8 +52,8 @@ def run_compliance_check(model_card: str):
52
  results = suite.run(model_card)
53
 
54
  return [
55
- *[gr.Accordion.update(label=f"{r.name} - {status_emoji(r.status)}", open=not r.status) for r in results],
56
- *[gr.Markdown.update(value=r.to_string()) for r in results],
57
  ]
58
 
59
 
 
52
  results = suite.run(model_card)
53
 
54
  return [
55
+ *[gr.Accordion(label=f"{r.name} - {status_emoji(r.status)}", open=not r.status) for r in results],
56
+ *[gr.Markdown(value=r.to_string()) for r in results],
57
  ]
58
 
59