Improve "Chat settings" tab appearance a bit

This commit is contained in:
oobabooga 2023-05-21 22:58:14 -03:00
parent dcc3e54005
commit e3d578502a

View file

@ -626,16 +626,16 @@ def create_interface():
with gr.Tab('Chat history'): with gr.Tab('Chat history'):
with gr.Row(): with gr.Row():
with gr.Column(): with gr.Column():
gr.Markdown('## Upload') gr.Markdown('### Upload')
shared.gradio['upload_chat_history'] = gr.File(type='binary', file_types=['.json', '.txt']) shared.gradio['upload_chat_history'] = gr.File(type='binary', file_types=['.json', '.txt'])
with gr.Column(): with gr.Column():
gr.Markdown('## Download') gr.Markdown('### Download')
shared.gradio['download'] = gr.File() shared.gradio['download'] = gr.File()
shared.gradio['download_button'] = gr.Button(value='Click me') shared.gradio['download_button'] = gr.Button(value='Click me')
with gr.Tab('Upload character'): with gr.Tab('Upload character'):
gr.Markdown('## JSON format') gr.Markdown('### JSON format')
with gr.Row(): with gr.Row():
with gr.Column(): with gr.Column():
gr.Markdown('1. Select the JSON file') gr.Markdown('1. Select the JSON file')
@ -646,7 +646,7 @@ def create_interface():
shared.gradio['upload_img_bot'] = gr.File(type='binary', file_types=['image']) shared.gradio['upload_img_bot'] = gr.File(type='binary', file_types=['image'])
shared.gradio['Upload character'] = gr.Button(value='Submit') shared.gradio['Upload character'] = gr.Button(value='Submit')
gr.Markdown('## TavernAI PNG format') gr.Markdown('### TavernAI PNG format')
shared.gradio['upload_img_tavern'] = gr.File(type='binary', file_types=['image']) shared.gradio['upload_img_tavern'] = gr.File(type='binary', file_types=['image'])
with gr.Tab("Parameters", elem_id="parameters"): with gr.Tab("Parameters", elem_id="parameters"):