Upload main.py
Browse files
main.py
CHANGED
@@ -58,7 +58,7 @@ with gr.Blocks(title="ChatGPT 学术优化", theme=set_theme, analytics_enabled=
|
|
58 |
chatbot.style(height=CHATBOT_HEIGHT)
|
59 |
history = gr.State([])
|
60 |
with gr_L2(scale=1):
|
61 |
-
with gr.Accordion("输入区", open=True) as area_input_primary:
|
62 |
with gr.Row():
|
63 |
txt = gr.Textbox(show_label=False, placeholder="Input question here.").style(container=False)
|
64 |
with gr.Row():
|
@@ -67,7 +67,7 @@ with gr.Blocks(title="ChatGPT 学术优化", theme=set_theme, analytics_enabled=
|
|
67 |
resetBtn = gr.Button("重置", variant="secondary"); resetBtn.style(size="sm")
|
68 |
stopBtn = gr.Button("停止", variant="secondary"); stopBtn.style(size="sm")
|
69 |
with gr.Row():
|
70 |
-
status = gr.Markdown(f"
|
71 |
with gr.Accordion("基础功能区", open=True) as area_basic_fn:
|
72 |
with gr.Row():
|
73 |
for k in functional:
|
@@ -98,7 +98,7 @@ with gr.Blocks(title="ChatGPT 学术优化", theme=set_theme, analytics_enabled=
|
|
98 |
temperature = gr.Slider(minimum=-0, maximum=2.0, value=1.0, step=0.01, interactive=True, label="Temperature",)
|
99 |
checkboxes = gr.CheckboxGroup(["基础功能区", "函数插件区", "底部输入区"], value=["基础功能区", "函数插件区"], label="显示/隐藏功能区")
|
100 |
gr.Markdown(description)
|
101 |
-
with gr.Accordion("输入区", open=True, visible=
|
102 |
with gr.Row():
|
103 |
txt2 = gr.Textbox(show_label=False, placeholder="Input question here.", label="输入区2").style(container=False)
|
104 |
with gr.Row():
|
|
|
58 |
chatbot.style(height=CHATBOT_HEIGHT)
|
59 |
history = gr.State([])
|
60 |
with gr_L2(scale=1):
|
61 |
+
with gr.Accordion("输入区", open=True, visible=False) as area_input_primary:
|
62 |
with gr.Row():
|
63 |
txt = gr.Textbox(show_label=False, placeholder="Input question here.").style(container=False)
|
64 |
with gr.Row():
|
|
|
67 |
resetBtn = gr.Button("重置", variant="secondary"); resetBtn.style(size="sm")
|
68 |
stopBtn = gr.Button("停止", variant="secondary"); stopBtn.style(size="sm")
|
69 |
with gr.Row():
|
70 |
+
status = gr.Markdown(f"Tips: 按Enter提交, 按Shift+Enter换行。\n当前模型: {LLM_MODEL}")
|
71 |
with gr.Accordion("基础功能区", open=True) as area_basic_fn:
|
72 |
with gr.Row():
|
73 |
for k in functional:
|
|
|
98 |
temperature = gr.Slider(minimum=-0, maximum=2.0, value=1.0, step=0.01, interactive=True, label="Temperature",)
|
99 |
checkboxes = gr.CheckboxGroup(["基础功能区", "函数插件区", "底部输入区"], value=["基础功能区", "函数插件区"], label="显示/隐藏功能区")
|
100 |
gr.Markdown(description)
|
101 |
+
with gr.Accordion("输入区", scale=4, open=True, visible=True) as area_input_secondary:
|
102 |
with gr.Row():
|
103 |
txt2 = gr.Textbox(show_label=False, placeholder="Input question here.", label="输入区2").style(container=False)
|
104 |
with gr.Row():
|