Spaces:
Running
Running
Upload 2 files
Browse files
app.py
CHANGED
@@ -660,6 +660,8 @@ category_choices = list(first_model['scores'].keys())
|
|
660 |
|
661 |
with gr.Blocks(css=css) as demo:
|
662 |
gr.Markdown("# AI System Social Impact Dashboard")
|
|
|
|
|
663 |
|
664 |
with gr.Row():
|
665 |
tab_selection = gr.Radio(["Leaderboard", "Category Analysis", "Detailed Scorecard"],
|
@@ -685,7 +687,7 @@ with gr.Blocks(css=css) as demo:
|
|
685 |
|
686 |
with gr.Column(visible=True) as leaderboard_tab:
|
687 |
leaderboard_output = gr.DataFrame(
|
688 |
-
value=
|
689 |
interactive=False,
|
690 |
wrap=True,
|
691 |
datatype=["markdown", "markdown", "markdown"] + ["markdown"] * (len(category_choices)+1) # Support markdown in all columns
|
|
|
660 |
|
661 |
with gr.Blocks(css=css) as demo:
|
662 |
gr.Markdown("# AI System Social Impact Dashboard")
|
663 |
+
|
664 |
+
initial_df = create_leaderboard(category_choices)
|
665 |
|
666 |
with gr.Row():
|
667 |
tab_selection = gr.Radio(["Leaderboard", "Category Analysis", "Detailed Scorecard"],
|
|
|
687 |
|
688 |
with gr.Column(visible=True) as leaderboard_tab:
|
689 |
leaderboard_output = gr.DataFrame(
|
690 |
+
value=initial_df,
|
691 |
interactive=False,
|
692 |
wrap=True,
|
693 |
datatype=["markdown", "markdown", "markdown"] + ["markdown"] * (len(category_choices)+1) # Support markdown in all columns
|