适配TOP-DOWN布局

This commit is contained in:
505030475
2023-07-08 02:13:26 +08:00
parent 0fc1a32b73
commit c1680076fa
2 changed files with 49 additions and 49 deletions

View File

@ -58,7 +58,7 @@ def main():
with gr_L1():
with gr_L2(scale=2, elem_id="gpt-chat"):
chatbot = gr.Chatbot(label=f"当前模型:{LLM_MODEL}", elem_id="gpt-chatbot")
chatbot.style()
if LAYOUT == "TOP-DOWN": chatbot.style(height=CHATBOT_HEIGHT)
history = gr.State([])
with gr_L2(scale=1, elem_id="gpt-panel"):
with gr.Accordion("输入区", open=True, elem_id="input-panel") as area_input_primary: