Spaces:
Sleeping
Sleeping
| import gradio as gr | |
| from utils.models import show_fairness_table | |
| def render(): | |
| gr.Markdown("### Fairness Check Across Groups") | |
| with gr.Row(): | |
| with gr.Column(): | |
| gr.Markdown("#### Group Metrics") | |
| gr.Dataframe(value=show_fairness_table()) | |
| with gr.Column(): | |
| gr.Markdown("#### Interpretation") | |
| gr.Markdown(""" | |
| - **Demographic parity** difference close to 0 → predictions are balanced | |
| - **Equalized odds** difference close to 0 → errors are equally distributed | |
| """) | |