Increase --chat box height

This commit is contained in:
oobabooga 2023-03-30 00:43:49 -03:00
parent 131753fcf5
commit bd65940a48
2 changed files with 4 additions and 1 deletions

View File

@ -29,3 +29,6 @@ div.svelte-362y77>*, div.svelte-362y77>.form>* {
padding: 0;
}
#gradio-chatbot {
height: 66.67vh;
}

View File

@ -295,7 +295,7 @@ def create_interface():
if shared.args.cai_chat:
shared.gradio['display'] = gr.HTML(value=generate_chat_html(shared.history['visible'], shared.settings['name1'], shared.settings['name2'], shared.character))
else:
shared.gradio['display'] = gr.Chatbot(value=shared.history['visible']).style(color_map=("#326efd", "#212528"))
shared.gradio['display'] = gr.Chatbot(value=shared.history['visible'], elem_id="gradio-chatbot")
shared.gradio['textbox'] = gr.Textbox(label='Input')
with gr.Row():
shared.gradio['Generate'] = gr.Button('Generate')