Upload main.py
Browse files
main.py
CHANGED
@@ -59,7 +59,7 @@ with gr.Blocks(title="ChatGPT 学术优化", theme=set_theme, analytics_enabled=
|
|
59 |
chatbot.style(height=CHATBOT_HEIGHT)
|
60 |
history = gr.State([])
|
61 |
with gr_L2(scale=1):
|
62 |
-
with gr.Accordion("
|
63 |
with gr.Row():
|
64 |
txt = gr.Textbox(show_label=False, placeholder="Input question here.").style(container=False)
|
65 |
with gr.Row():
|
@@ -67,7 +67,7 @@ with gr.Blocks(title="ChatGPT 学术优化", theme=set_theme, analytics_enabled=
|
|
67 |
with gr.Row():
|
68 |
resetBtn = gr.Button("重置", variant="secondary"); resetBtn.style(size="sm")
|
69 |
stopBtn = gr.Button("停止", variant="secondary"); stopBtn.style(size="sm")
|
70 |
-
clearBtn = gr.Button("清除", variant="secondary", visible=
|
71 |
with gr.Row():
|
72 |
status = gr.Markdown(f"Tip: 按Enter提交, 按Shift+Enter换行。当前模型: {LLM_MODEL} \n {proxy_info}")
|
73 |
with gr.Accordion("基础功能区", open=True) as area_basic_fn:
|
|
|
59 |
chatbot.style(height=CHATBOT_HEIGHT)
|
60 |
history = gr.State([])
|
61 |
with gr_L2(scale=1):
|
62 |
+
with gr.Accordion("用户输入", open=True) as area_input_primary:
|
63 |
with gr.Row():
|
64 |
txt = gr.Textbox(show_label=False, placeholder="Input question here.").style(container=False)
|
65 |
with gr.Row():
|
|
|
67 |
with gr.Row():
|
68 |
resetBtn = gr.Button("重置", variant="secondary"); resetBtn.style(size="sm")
|
69 |
stopBtn = gr.Button("停止", variant="secondary"); stopBtn.style(size="sm")
|
70 |
+
clearBtn = gr.Button("清除", variant="secondary", visible=True); clearBtn.style(size="sm")
|
71 |
with gr.Row():
|
72 |
status = gr.Markdown(f"Tip: 按Enter提交, 按Shift+Enter换行。当前模型: {LLM_MODEL} \n {proxy_info}")
|
73 |
with gr.Accordion("基础功能区", open=True) as area_basic_fn:
|