From 262f8ae5bb49b2fb1d9aac9af01e3e5cd98765db Mon Sep 17 00:00:00 2001 From: oobabooga <112222186+oobabooga@users.noreply.github.com> Date: Fri, 27 Oct 2023 06:49:14 -0700 Subject: [PATCH] Use default gr.Dataframe for evaluation table --- css/main.css | 8 -------- modules/training.py | 2 +- 2 files changed, 1 insertion(+), 9 deletions(-) diff --git a/css/main.css b/css/main.css index 8b9469f0a6..47506c5ee9 100644 --- a/css/main.css +++ b/css/main.css @@ -648,11 +648,3 @@ div.svelte-362y77>*, div.svelte-362y77>.form>* { .options { z-index: 100 !important; } - -/* ---------------------------------------------- - Increase the height of the evaluation table ----------------------------------------------- */ -#evaluation-table table { - max-height: none !important; - overflow-y: auto !important; -} diff --git a/modules/training.py b/modules/training.py index cc1df37b9d..b887fa479e 100644 --- a/modules/training.py +++ b/modules/training.py @@ -175,7 +175,7 @@ def create_ui(): with gr.Column(): evaluation_log = gr.Markdown(value='') - evaluation_table = gr.Dataframe(value=generate_markdown_table(), interactive=True, height=16000, elem_id='evaluation-table') + evaluation_table = gr.Dataframe(value=generate_markdown_table(), interactive=True) with gr.Row(): save_comments = gr.Button('Save comments', elem_classes="small-button", interactive=not mu) refresh_table = gr.Button('Refresh the table', elem_classes="small-button", interactive=not mu)