Reorganize chat buttons

This commit is contained in:
oobabooga 2023-02-04 22:53:42 -03:00
parent 2207d44986
commit 2fe235738e

View File

@ -667,16 +667,17 @@ if args.chat or args.cai_chat:
else: else:
display = gr.Chatbot() display = gr.Chatbot()
textbox = gr.Textbox(label='Input') textbox = gr.Textbox(label='Input')
buttons["Generate"] = gr.Button("Generate")
with gr.Row(): with gr.Row():
buttons["Stop"] = gr.Button("Stop") buttons["Stop"] = gr.Button("Stop")
buttons["Generate"] = gr.Button("Generate")
buttons["Regenerate"] = gr.Button("Regenerate") buttons["Regenerate"] = gr.Button("Regenerate")
with gr.Row():
buttons["Impersonate"] = gr.Button("Impersonate")
buttons["Remove last"] = gr.Button("Remove last") buttons["Remove last"] = gr.Button("Remove last")
buttons["Clear"] = gr.Button("Clear history") buttons["Clear"] = gr.Button("Clear history")
with gr.Row(): with gr.Row():
buttons["Send last reply to input"] = gr.Button("Send last reply to input") buttons["Send last reply to input"] = gr.Button("Send last reply to input")
buttons["Replace last reply"] = gr.Button("Replace last reply") buttons["Replace last reply"] = gr.Button("Replace last reply")
buttons["Impersonate"] = gr.Button("Impersonate")
with gr.Row(): with gr.Row():
with gr.Column(): with gr.Column():