Spaces:
Runtime error
Runtime error
Seems the .update() function throws an error -- removing.
Browse files
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
|
| 56 |
-
*[gr.Markdown
|
| 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 |
|