From 57eb14e9a5e6c238f7821a61f34287c9648ac316 Mon Sep 17 00:00:00 2001 From: cornzz <39997278+cornzz@users.noreply.github.com> Date: Wed, 18 Sep 2024 13:25:13 +0300 Subject: [PATCH] Hide button hints in compress only mode --- src/app.py | 21 +++++++++++---------- 1 file changed, 11 insertions(+), 10 deletions(-) diff --git a/src/app.py b/src/app.py index 83ce6d7..8230539 100644 --- a/src/app.py +++ b/src/app.py @@ -304,16 +304,17 @@ def run_demo( response_a_obj = gr.Textbox(label="Response A", visible=False) response_b = gr.Textbox(label="LLM Response B", lines=10, max_lines=10, autoscroll=False, interactive=False) response_b_obj = gr.Textbox(label="Response B", visible=False) - with gr.Row() as flag_buttons: - a_yes = gr.Button("✅", interactive=False) - a_no = gr.Button("❌", interactive=False) - b_yes = gr.Button("✅", interactive=False) - b_no = gr.Button("❌", interactive=False) - FLAG_BUTTONS = [a_yes, a_no, b_yes, b_no] - gr.Markdown( - '
" - ) + with gr.Column() as flag_buttons: + with gr.Row(): + a_yes = gr.Button("✅", interactive=False) + a_no = gr.Button("❌", interactive=False) + b_yes = gr.Button("✅", interactive=False) + b_no = gr.Button("❌", interactive=False) + FLAG_BUTTONS = [a_yes, a_no, b_yes, b_no] + gr.Markdown( + ' " + ) # Examples gr.Markdown('