From f4674d34a90a0e7b7d13c1381a80280446760dfc Mon Sep 17 00:00:00 2001 From: oobabooga <112222186+oobabooga@users.noreply.github.com> Date: Sat, 28 Jan 2023 20:28:08 -0300 Subject: [PATCH] Reorganize chat UI elements --- server.py | 14 +++++++++----- 1 file changed, 9 insertions(+), 5 deletions(-) diff --git a/server.py b/server.py index dbc78d6e..632a927f 100644 --- a/server.py +++ b/server.py @@ -580,11 +580,15 @@ 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.Tab('Upload chat history'): - upload = gr.File(type='binary') - with gr.Tab('Download chat history'): - download = gr.File() - save_btn = gr.Button(value="Click me") + with gr.Tab('Chat history'): + with gr.Row(): + with gr.Column(): + gr.Markdown('Upload') + upload = gr.File(type='binary') + with gr.Column(): + gr.Markdown('Download') + download = gr.File() + save_btn = gr.Button(value="Click me") with gr.Tab('Upload character'): with gr.Row(): with gr.Column():