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.')