From 71cac7a1b20d61c8788702655ca617e05fcfacf7 Mon Sep 17 00:00:00 2001 From: oobabooga <112222186+oobabooga@users.noreply.github.com> Date: Sun, 15 Oct 2023 21:56:40 -0700 Subject: [PATCH] Increase the height of the evaluation table --- css/main.css | 8 ++++++++ modules/training.py | 2 +- 2 files changed, 9 insertions(+), 1 deletion(-) diff --git a/css/main.css b/css/main.css index f5093274..8c3103a2 100644 --- a/css/main.css +++ b/css/main.css @@ -642,3 +642,11 @@ 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 aaea2bd7..a320d842 100644 --- a/modules/training.py +++ b/modules/training.py @@ -156,7 +156,7 @@ def create_ui(): with gr.Column(): evaluation_log = gr.Markdown(value='') - evaluation_table = gr.Dataframe(value=generate_markdown_table(), interactive=True) + evaluation_table = gr.Dataframe(value=generate_markdown_table(), interactive=True, height=20000, elem_id='evaluation-table') 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)