Spaces:
Running
on
Zero
Running
on
Zero
Update app.py
Browse files
app.py
CHANGED
@@ -712,32 +712,6 @@ with gr.Blocks(css="""
|
|
712 |
outputs=[benchmark_subject_dropdown]
|
713 |
)
|
714 |
|
715 |
-
# Toggle visibility of detail_output
|
716 |
-
show_details_button.click(
|
717 |
-
lambda s: gr.update(visible=not s), # Toggle visibility
|
718 |
-
inputs=[detail_output], # Pass the component itself as input
|
719 |
-
outputs=[detail_output] # The component to update
|
720 |
-
)
|
721 |
-
|
722 |
-
# Toggle visibility of debug error column
|
723 |
-
debug_button.click(
|
724 |
-
lambda s: gr.update(visible=not s), # Toggle visibility
|
725 |
-
inputs=[debug_error_column], # Pass the component itself as input
|
726 |
-
outputs=[debug_error_column] # The component to update
|
727 |
-
)
|
728 |
-
# Change debug button text based on visibility
|
729 |
-
debug_button.click(
|
730 |
-
lambda s: "π Show Debug Info" if not s else "π Hide Debug Info",
|
731 |
-
inputs=[debug_error_column],
|
732 |
-
outputs=[debug_button]
|
733 |
-
)
|
734 |
-
|
735 |
-
download_button.click(
|
736 |
-
save_text,
|
737 |
-
inputs=[detail_output],
|
738 |
-
outputs=gr.File(label="Download Evaluation Results", file_count="single", type="filepath")
|
739 |
-
)
|
740 |
-
|
741 |
with gr.TabItem("π Leaderboard"):
|
742 |
gr.Markdown("""
|
743 |
<div class="markdown-text">
|
|
|
712 |
outputs=[benchmark_subject_dropdown]
|
713 |
)
|
714 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
715 |
with gr.TabItem("π Leaderboard"):
|
716 |
gr.Markdown("""
|
717 |
<div class="markdown-text">
|