From 139e2f0ab41de850019f855ae2194f80abee2ca3 Mon Sep 17 00:00:00 2001 From: oobabooga <112222186+oobabooga@users.noreply.github.com> Date: Sun, 22 Jan 2023 00:22:50 -0300 Subject: [PATCH] Redesign the upload/download chat history buttons --- server.py | 8 +++----- 1 file changed, 3 insertions(+), 5 deletions(-) diff --git a/server.py b/server.py index 5ac1d20b..695f31d6 100644 --- a/server.py +++ b/server.py @@ -442,13 +442,11 @@ if args.chat or args.cai_chat: with gr.Row(): check = gr.Checkbox(value=settings[f'stop_at_newline{suffix}'], label='Stop generating at new line character?') with gr.Row(): - with gr.Column(): - gr.Markdown("Upload chat history", elem_id="upload-label") + with gr.Tab('Upload chat history'): upload = gr.File(type='binary') - with gr.Column(): - gr.Markdown("Download chat history", elem_id="download-label") - save_btn = gr.Button(value="Click me") + with gr.Tab('Download chat history'): download = gr.File() + save_btn = gr.Button(value="Click me") input_params = [textbox, length_slider, preset_menu, model_menu, name1, name2, context, check, history_size_slider] if args.cai_chat: