Redesign the upload/download chat history buttons
This commit is contained in:
parent
434d4b128c
commit
139e2f0ab4
1 changed files with 3 additions and 5 deletions
|
@ -442,13 +442,11 @@ if args.chat or args.cai_chat:
|
||||||
with gr.Row():
|
with gr.Row():
|
||||||
check = gr.Checkbox(value=settings[f'stop_at_newline{suffix}'], label='Stop generating at new line character?')
|
check = gr.Checkbox(value=settings[f'stop_at_newline{suffix}'], label='Stop generating at new line character?')
|
||||||
with gr.Row():
|
with gr.Row():
|
||||||
with gr.Column():
|
with gr.Tab('Upload chat history'):
|
||||||
gr.Markdown("Upload chat history", elem_id="upload-label")
|
|
||||||
upload = gr.File(type='binary')
|
upload = gr.File(type='binary')
|
||||||
with gr.Column():
|
with gr.Tab('Download chat history'):
|
||||||
gr.Markdown("Download chat history", elem_id="download-label")
|
|
||||||
save_btn = gr.Button(value="Click me")
|
|
||||||
download = gr.File()
|
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]
|
input_params = [textbox, length_slider, preset_menu, model_menu, name1, name2, context, check, history_size_slider]
|
||||||
if args.cai_chat:
|
if args.cai_chat:
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue