From 628f8e616825feebb8e6e57e4845106095ccbef1 Mon Sep 17 00:00:00 2001 From: oobabooga <112222186+oobabooga@users.noreply.github.com> Date: Fri, 14 Apr 2023 23:17:15 -0300 Subject: [PATCH] Reorganize chat buttons --- server.py | 16 ++++++++-------- 1 file changed, 8 insertions(+), 8 deletions(-) diff --git a/server.py b/server.py index 7fd36d7d..78c027c9 100644 --- a/server.py +++ b/server.py @@ -466,25 +466,25 @@ def create_interface(): shared.gradio['display'] = gr.HTML(value=chat_html_wrapper(shared.history['visible'], shared.settings['name1'], shared.settings['name2'], 'cai-chat')) shared.gradio['textbox'] = gr.Textbox(label='Input') with gr.Row(): - shared.gradio['Generate'] = gr.Button('Generate', elem_id='Generate') shared.gradio['Stop'] = gr.Button('Stop', elem_id='stop') - - with gr.Row(): - shared.gradio['Regenerate'] = gr.Button('Regenerate') + shared.gradio['Generate'] = gr.Button('Generate', elem_id='Generate') shared.gradio['Continue'] = gr.Button('Continue') - shared.gradio['Impersonate'] = gr.Button('Impersonate') with gr.Row(): + shared.gradio['Copy last reply'] = gr.Button('Copy last reply') + shared.gradio['Regenerate'] = gr.Button('Regenerate') + shared.gradio['Replace last reply'] = gr.Button('Replace last reply') + + with gr.Row(): + shared.gradio['Impersonate'] = gr.Button('Impersonate') shared.gradio['Send dummy message'] = gr.Button('Send dummy message') shared.gradio['Send dummy reply'] = gr.Button('Send dummy reply') - shared.gradio['Replace last reply'] = gr.Button('Replace last reply') - shared.gradio['Copy last reply'] = gr.Button('Copy last reply') with gr.Row(): + shared.gradio['Remove last'] = gr.Button('Remove last') shared.gradio['Clear history'] = gr.Button('Clear history') shared.gradio['Clear history-confirm'] = gr.Button('Confirm', variant='stop', visible=False) shared.gradio['Clear history-cancel'] = gr.Button('Cancel', visible=False) - shared.gradio['Remove last'] = gr.Button('Remove last') shared.gradio['mode'] = gr.Radio(choices=['cai-chat', 'chat', 'instruct'], value=shared.settings['mode'], label='Mode') shared.gradio['instruction_template'] = gr.Dropdown(choices=get_available_instruction_templates(), label='Instruction template', value=shared.settings['instruction_template'], visible=shared.settings['mode'] == 'instruct', info='Change this according to the model/LoRA that you are using.')